Skip to content

Commit ea66272

Browse files
committed
Fix nginx to preserve X-Forwarded-Proto from Traefik
- Prevents overwriting HTTPS scheme with HTTP - Allows secure session cookies to work correctly
1 parent 08a7beb commit ea66272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ http {
4848
proxy_set_header Host $host;
4949
proxy_set_header X-Real-IP $remote_addr;
5050
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51-
proxy_set_header X-Forwarded-Proto $scheme;
51+
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
5252
proxy_cache_bypass $http_upgrade;
5353
}
5454

0 commit comments

Comments
 (0)