Skip to content

Commit a63ec07

Browse files
authored
Update default.conf
1 parent 588fc3a commit a63ec07

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/default.conf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@ server {
2727
# Enable SSL trust for Traefik
2828
if ($http_x_forwarded_proto = 'https') {
2929
set $https on;
30-
}
31-
32-
if ($http_x_forwarded_proto = 'https') {
3330
set $request_scheme https; # Override REQUEST_SCHEME
3431
}
3532

3633
# Pass custom HTTPS parameters and override REQUEST_SCHEME
3734
fastcgi_param HTTPS $https;
3835
fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
39-
fastcgi_param REQUEST_SCHEME $http_x_forwarded_proto;
36+
fastcgi_param REQUEST_SCHEME https;
4037
}
4138

4239
client_max_body_size 128M;

0 commit comments

Comments
 (0)