This commit is contained in:
WilliamMiceli
2019-01-05 19:03:30 -05:00
parent 87a5c5c7d6
commit 2484bf113e

View File

@@ -22,12 +22,13 @@ http {
} }
upstream collabora { upstream collabora {
server collabora:9980 server collabora:9980;
} }
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name _;
# Add headers to serve security related headers # Add headers to serve security related headers
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
@@ -132,22 +133,23 @@ http {
server { server {
listen 81; listen 81;
listen [::]:81; listen [::]:81;
server_name _;
# static files # static files
location ^~ /loleaflet { location ^~ /loleaflet {
proxy_pass collabora; proxy_pass http://collabora;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
} }
# WOPI discovery URL # WOPI discovery URL
location ^~ /hosting/discovery { location ^~ /hosting/discovery {
proxy_pass collabora; proxy_pass http://collabora;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
} }
# main websocket # main websocket
location ~ ^/lool/(.*)/ws$ { location ~ ^/lool/(.*)/ws$ {
proxy_pass collabora; proxy_pass http://collabora;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
@@ -156,13 +158,13 @@ http {
# download, presentation and image upload # download, presentation and image upload
location ~ ^/lool { location ~ ^/lool {
proxy_pass collabora; proxy_pass http://collabora;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
} }
# Admin Console websocket # Admin Console websocket
location ^~ /lool/adminws { location ^~ /lool/adminws {
proxy_pass collabora; proxy_pass http://collabora;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host; proxy_set_header Host $http_host;