Skip to content

Commit c4b2051

Browse files
committed
fix: keep nginx redirects relative behind TLS proxy
1 parent c0b35d0 commit c4b2051

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ server {
66
root /usr/share/nginx/html;
77
index index.html;
88

9+
# TLS is terminated by an upstream proxy; this server only sees plain HTTP on
10+
# 8080. Keep redirects relative so the browser resolves them against the
11+
# original request origin (https://host) instead of nginx emitting an
12+
# absolute Location with the internal scheme and port (http://host:8080).
13+
absolute_redirect off;
14+
915
# Compression
1016
gzip on;
1117
gzip_vary on;

0 commit comments

Comments
 (0)