Commit 5cd25e91 authored by nimrod's avatar nimrod
Browse files

CODE updates.

parent 73f40090
Loading
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -22,13 +22,14 @@ server {
    include     snippets/ssl-modern.conf;

    # The following was copied (and modified) from
    # https://www.collaboraoffice.com/code/nginx-reverse-proxy/.
    # https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-nginx-webserver.

    # static files
    location ^~ /loleaflet {
    location ^~ /browser {
        proxy_pass              http://$code:9980$request_uri;
        proxy_http_version      1.1;
        include                 snippets/proxy-headers.conf;
        proxy_hide_header       X-Frame-Options;
    }

    # WOPI discovery URL
@@ -46,7 +47,7 @@ server {
    }

    # main websocket
    location ~ ^/lool/(.*)/ws$ {
    location ~ ^/cool/(.*)/ws$ {
        proxy_pass              http://$code:9980$request_uri;
        proxy_http_version      1.1;
        include                 snippets/proxy-headers.conf;
@@ -54,14 +55,14 @@ server {
    }

    # download, presentation and image upload
    location ~ ^/lool {
    location ~ ^/(c|l)ool {
        proxy_pass              http://$code:9980$request_uri;
        proxy_http_version      1.1;
        include                 snippets/proxy-headers.conf;
    }

    # Admin Console websocket
    location ^~ /lool/adminws {
    location ^~ /cool/adminws {
        proxy_pass              http://$code:9980$request_uri;
        proxy_http_version      1.1;
        include                 snippets/proxy-headers.conf;