From 4415c1f422f48df174daa6352d5920cb226db342 Mon Sep 17 00:00:00 2001 From: LeoVerto Date: Thu, 18 Oct 2018 15:36:31 +0200 Subject: [PATCH] Add collabora online (CODE) subdomain config --- .../collabora-online.subdomain.conf.sample | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 root/defaults/proxy-confs/collabora-online.subdomain.conf.sample diff --git a/root/defaults/proxy-confs/collabora-online.subdomain.conf.sample b/root/defaults/proxy-confs/collabora-online.subdomain.conf.sample new file mode 100644 index 0000000..3880fc6 --- /dev/null +++ b/root/defaults/proxy-confs/collabora-online.subdomain.conf.sample @@ -0,0 +1,46 @@ +server { + listen 443 ssl; + + server_name office.*; + + include /config/nginx/ssl.conf; + + resolver 127.0.0.11 valid=30s; + set $upstream_code collabora_online.docker_reverse-proxy; + + # static files + location ^~ /loleaflet { + proxy_pass https://$upstream_code:9980; + proxy_set_header Host $http_host; + } + + # WOPI discovery URL + location ^~ /hosting/discovery { + proxy_pass https://$upstream_code:9980; + proxy_set_header Host $http_host; + } + + # main websocket + location ~ ^/lool/(.*)/ws$ { + proxy_pass https://$upstream_code:9980; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; + proxy_read_timeout 36000s; + } + + # download, presentation and image upload + location ~ ^/lool { + proxy_pass https://$upstream_code:9980; + proxy_set_header Host $http_host; + } + + # Admin Console websocket + location ^~ /lool/adminws { + proxy_pass https://$upstream_code:9980; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; + proxy_read_timeout 36000s; + } +}