1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/focalboard_ynh.git synced 2024-09-03 18:36:19 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2021-04-13 21:40:34 +02:00
parent 865252b2fa
commit a6b7bf5839
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,5 +1,4 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location / {
location __PATH__/ {
# Force usage of https # Force usage of https
if ($scheme = http) { if ($scheme = http) {
@ -28,7 +27,7 @@ location __PATH__/ {
more_clear_input_headers 'Accept-Encoding'; more_clear_input_headers 'Accept-Encoding';
} }
location __PATH__/ws/ { location /ws/ {
proxy_pass http://127.0.0.1:__PORT__/; proxy_pass http://127.0.0.1:__PORT__/;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
@ -48,6 +47,6 @@ location __PATH__/ws/ {
proxy_read_timeout 1d; proxy_read_timeout 1d;
} }
location __PATH__/uploads/ { location /uploads/ {
alias __FILES_PATH__/uploads/ ; alias __FILES_PATH__/uploads/ ;
} }