Files
bdi_podman_serverconf/containers/nextcloud/collaboraoffice.nginx
T
2026-07-06 20:11:43 +02:00

66 строки
2.1 KiB
Nginx Configuration File

server {
listen 443 ssl;
http2 on;
server_name office.[DOMAIN];
ssl_certificate /etc/letsencrypt/live/[DOMAIN]/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/[DOMAIN]/privkey.pem;
# Re-resolve collaboraoffice's DNS name at request time so a container
# restart (new IP on internal.network) doesn't leave nginx stuck on a
# stale address until nginx itself is restarted.
resolver 10.10.0.1 valid=10s;
resolver_timeout 5s;
location ^~ /browser {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Host $http_host;
}
location ^~ /hosting/discovery {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Host $http_host;
}
location ^~ /hosting/capabilities {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Host $http_host;
}
location ^~ /cool/ws {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
location ~ ^/cool/(.*)/ws$ {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
location ~ ^/(c|l)ool {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Host $http_host;
}
location ^~ /cool/adminws {
set $collabora_upstream http://collaboraoffice:9980;
proxy_pass $collabora_upstream;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
}