Fixing support of HTTP_X_FORWARDED_PROTO from proxy on top of Docker

This commit is contained in:
Axel 2024-01-06 14:28:53 +01:00
parent b418163269
commit 2fdca6b0c7

View file

@ -19,6 +19,8 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
if (! empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
\URL::forceScheme('https');
}
} }
} }