mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
Merge pull request #3 from linuxserver/collabora
Create collabora.subdomain.conf.sample
This commit is contained in:
commit
b1966bdbfd
1 changed files with 48 additions and 0 deletions
48
collabora.subdomain.conf.sample
Normal file
48
collabora.subdomain.conf.sample
Normal file
|
@ -0,0 +1,48 @@
|
|||
# make sure that your dns has a cname set for collabora and that your collabora container is named collabora
|
||||
|
||||
server {
|
||||
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;
|
||||
}
|
||||
|
||||
# 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue