Files
docker_nginxCertbot/data/user_conf.d/collabora.conf

58 lines
1.5 KiB
Plaintext
Executable File

server {
listen 443 ssl http2;
server_name collabora.awin.one;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/collabora.awin.one/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/collabora.awin.one/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/collabora.awin.one/chain.pem;
# static files
location ^~ /browser {
proxy_pass http://192.168.1.24:8081;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass http://192.168.1.24:8081;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://192.168.1.24:8081;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/cool/(.*)/ws$ {
proxy_pass http://192.168.1.24:8081;
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 ~ ^/(c|l)ool {
proxy_pass http://192.168.1.24:8081;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /cool/adminws {
proxy_pass http://192.168.1.24:8081;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
}