Install Collabora
This commit is contained in:
58
nginx.conf
58
nginx.conf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user