Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set roadrunner http.middlware as an option #327

Merged
merged 5 commits into from
Jun 18, 2021

Conversation

foxx9
Copy link
Contributor

@foxx9 foxx9 commented Jun 18, 2021

Roadrunner http.middlware config is currently hardcoded to "static" in src/Commands/StartRoadRunnerCommand.php file, and thus cannot be changed via .rr.yaml file

This pull request set this as an option in config/octane file in order to customize it following the official conf : https://roadrunner.dev/docs/intro-config

The main purpose is to allow to enable gzip as this is one the supported middleware option.
Ex : 'http_middleware' => 'static,gzip'

@taylorotwell taylorotwell merged commit a1d317b into laravel:1.x Jun 18, 2021
@foxx9
Copy link
Contributor Author

foxx9 commented Jun 18, 2021

Hi @taylorotwell , Thanks for accepting the request, however I see that you have used 'swoole' in the config file path in you commit: config('octane.swoole.http_middleware', 'static')

Did you mean 'octane.roadrunner.http_middleware' instead ?

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants