This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http{ | |
server { | |
listen 443 ssl; | |
server_name collabora.agdsn.network; | |
ssl_certificate /etc/nginx/ssl/collabora_fullchain.pem; | |
ssl_certificate_key /etc/nginx/ssl/collabora_privkey.pem; | |
proxy_ssl_verify off; | |
# static files | |
location ^~ /loleaflet { | |
proxy_pass https://collabora:9980; | |
proxy_set_header Host $http_host; | |
} | |
# WOPI discovery URL | |
location ^~ /hosting/discovery { | |
proxy_pass https://collabora:9980; | |
proxy_set_header Host $http_host; | |
} | |
# Capabilities | |
location ^~ /hosting/capabilities { | |
proxy_pass https://collabora:9980; | |
proxy_set_header Host $http_host; | |
} | |
# main websocket | |
location ~ ^/lool/(.*)/ws$ { | |
proxy_pass https://collabora: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://collabora:9980; | |
proxy_set_header Host $http_host; | |
} | |
# Admin Console websocket | |
location ^~ /lool/adminws { | |
proxy_pass https://collabora:9980; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "Upgrade"; | |
proxy_set_header Host $http_host; | |
proxy_read_timeout 36000s; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment