Install Collabora

This commit is contained in:
2020-12-07 21:55:23 +00:00
parent 6a465ffcd5
commit dd81fe9998
4 changed files with 94 additions and 11 deletions

View File

@@ -340,6 +340,64 @@ http {
}
}
upstream collabora-handler {
server collabora:9980;
}
server {
listen 443 ssl;
server_name office.scarif.local;
ssl_certificate /etc/nginx/certs/scarif.local.crt;
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
# static files
location ^~ /loleaflet {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass http://collabora-handler;
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 http://collabora-handler;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass http://collabora-handler;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
location / {
proxy_pass http://collabora-handler;
}
}
upstream gitea-handler {
server gitea:3000;
}