1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00

Update nginx.conf

This commit is contained in:
Taekiro 2021-12-22 19:02:29 +01:00 committed by GitHub
parent 81f4d7bdb3
commit 9c1e623556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ location ~ ^/$ {
} }
# static files # static files
location ^~ /loleaflet { location ^~ /browser {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
more_set_headers "X-Frame-Options: ALLOWALL"; more_set_headers "X-Frame-Options: ALLOWALL";
@ -26,7 +26,7 @@ location ^~ /hosting/capabilities {
} }
# main websocket # main websocket
location ~ ^/lool/(.*)/ws$ { location ~ ^/cool/(.*)/ws$ {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
@ -36,14 +36,14 @@ location ~ ^/lool/(.*)/ws$ {
} }
# download, presentation and image upload # download, presentation and image upload
location ~ ^/lool { location ~ ^/(c|l)ool {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
more_set_headers "X-Frame-Options: ALLOWALL"; more_set_headers "X-Frame-Options: ALLOWALL";
} }
# Admin Console websocket # Admin Console websocket
location ^~ /lool/adminws { location ^~ /cool/adminws {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";