collabora/nginx.conf.tmpl

60 lines
1.5 KiB
Cheetah
Raw Normal View History

user www-data;
events {
worker_connections 768;
}
http {
upstream collabora-upstream {
server {{ env "STACK_NAME" }}_app:9980;
}
server {
2021-04-27 11:17:30 +00:00
listen 80;
server_name {{ env "DOMAIN" }};
2021-04-27 11:02:11 +00:00
# static files
location ^~ /loleaflet {
proxy_pass http://collabora-upstream;
proxy_set_header Host $http_host;
}
2021-04-27 11:02:11 +00:00
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass http://collabora-upstream;
proxy_set_header Host $http_host;
}
2021-04-27 11:02:11 +00:00
2021-04-27 11:39:17 +00:00
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://collabora-upstream;
proxy_set_header Host $http_host;
}
# Main websocket
location ~ /lool/(.*)/ws$ {
proxy_pass http://collabora-upstream;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
2021-04-27 11:02:11 +00:00
# Admin Console websocket
location ^~ /lool/adminws {
proxy_buffering off;
proxy_pass http://collabora-upstream;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
2021-04-27 11:02:11 +00:00
# download, presentation and image upload
location ~ /lool {
2021-05-06 14:56:33 +00:00
proxy_pass http://collabora-upstream;
proxy_set_header Host $http_host;
}
2021-04-27 11:02:11 +00:00
}
}