diff --git a/src/default.conf b/src/default.conf index 9c9f0e7..1b23e5b 100644 --- a/src/default.conf +++ b/src/default.conf @@ -27,16 +27,13 @@ server { # Enable SSL trust for Traefik if ($http_x_forwarded_proto = 'https') { set $https on; - } - - if ($http_x_forwarded_proto = 'https') { set $request_scheme https; # Override REQUEST_SCHEME } # Pass custom HTTPS parameters and override REQUEST_SCHEME fastcgi_param HTTPS $https; fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto; - fastcgi_param REQUEST_SCHEME $http_x_forwarded_proto; + fastcgi_param REQUEST_SCHEME https; } client_max_body_size 128M;