laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.74k stars 291 forks source link

feat(frankenphp): make HTTP to HTTPS redirection opt-in #814

Closed dunglas closed 7 months ago

dunglas commented 7 months ago

While checking https://github.com/laravel/octane/issues/811, I discovered that by default, HTTP to HTTP redirection is enabled, even when using the non-default HTTPS port:

./artisan octane:start --https

This starts an HTTPS server on port 8000, but also an HTTP server on port 80, which will likely be unavailable.

This patch makes the redirection opt-in, and disables it by default:

./artisan octane:start --https --redirect-http