Skip to content

Commit 70a6709

Browse files
committed
nginx fix
1 parent 3e39075 commit 70a6709

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

deploy/setup-nginx-ssl.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ server {
5252
proxy_http_version 1.1;
5353
proxy_set_header Upgrade $http_upgrade;
5454
proxy_set_header Connection "upgrade";
55+
56+
# Rewriting internal paths in HTML responses to use /auth/ prefix
57+
sub_filter_once off;
58+
sub_filter_types text/html;
59+
60+
sub_filter 'href="/' 'href="/auth/';
61+
sub_filter 'src="/' 'src="/auth/';
62+
sub_filter 'action="/' 'action="/auth/';
5563
}
5664
5765
location / {

0 commit comments

Comments
 (0)