mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
# make sure that your dns has a cname set for collabora and that your collabora container is named collabora
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
server_name collabora.*;
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
resolver 127.0.0.11 valid=30s;
|
|
set $upstream_collabora collabora;
|
|
|
|
# static files
|
|
location ^~ /loleaflet {
|
|
proxy_pass https://$upstream_collabora:9980;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
# WOPI discovery URL
|
|
location ^~ /hosting/discovery {
|
|
proxy_pass https://$upstream_collabora:9980;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
# Capabilities
|
|
location ^~ /hosting/capabilities {
|
|
proxy_pass https://$upstream_collabora:9980;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
# main websocket
|
|
location ~ ^/lool/(.*)/ws$ {
|
|
proxy_pass https://$upstream_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://$upstream_collabora:9980;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
# Admin Console websocket
|
|
location ^~ /lool/adminws {
|
|
proxy_pass https://$upstream_collabora:9980;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $http_host;
|
|
proxy_read_timeout 36000s;
|
|
}
|
|
}
|