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/ ; }