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:
parent
865252b2fa
commit
a6b7bf5839
1 changed files with 3 additions and 4 deletions
|
@ -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/ ;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue