From a6b7bf5839204468cb42b3e73fd2fe9c2685af7c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 13 Apr 2021 21:40:34 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7af9fdd..353bc76 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Force usage of https if ($scheme = http) { @@ -28,7 +27,7 @@ location __PATH__/ { more_clear_input_headers 'Accept-Encoding'; } -location __PATH__/ws/ { +location /ws/ { proxy_pass http://127.0.0.1:__PORT__/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; @@ -48,6 +47,6 @@ location __PATH__/ws/ { proxy_read_timeout 1d; } -location __PATH__/uploads/ { +location /uploads/ { alias __FILES_PATH__/uploads/ ; }