spiral-modules / roadrunner-binary

💾 High-performance PHP application server, load-balancer and process manager written in Golang. RR2 releases repository.
MIT License
44 stars 25 forks source link

[BUG] Missing plugins: `fileserver` and `http_metrics` #142

Closed vladimir-vv closed 2 years ago

vladimir-vv commented 2 years ago

Greetings,

I was trying to test new fileserver module and http_metrics middleware - without any success.

As I can see in roadrunner-plugins code may be need to list them in this file?

internal/container/plugins.go

The version of RR used: 2.6.2 Also tried with docker container with the same version of RR The operation system used: Linux 5.14.18-1-MANJARO x86_64

RR configuration file content:

http:
  address: 0.0.0.0:8060
  middleware: ["headers",  "gzip", "http_metrics"]
  pool:
    num_workers: 2
    max_jobs: 16
  headers:
    response:
      X-Powered-By: "RoadRunner"

  static:
    dir: "public/"
    forbid: [".php"]
    response:
      Cache-Control: "public, max-age=300"

fileserver:
  address: 0.0.0.0:8062
  calculate_etag: true
  weak: false
  serve:
    - prefix: "/public"
      root: "public/"
      max_age: 300

Could you please take a look?

rustatian commented 2 years ago

Hey @vladimir-vv . Yeah, you are right, forget to add them to the plugins list. I'll release v2.6.3 in an hour.

rustatian commented 2 years ago

@vladimir-vv here you are: https://github.com/spiral/roadrunner-binary/releases/tag/v2.6.3