2021-04-27 11:15:26 +00:00
|
|
|
user www-data;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 768;
|
|
|
|
}
|
|
|
|
|
2021-04-27 11:14:16 +00:00
|
|
|
http {
|
|
|
|
upstream collabora-upstream {
|
|
|
|
server app:9980;
|
|
|
|
}
|
2021-04-27 11:12:45 +00:00
|
|
|
|
2021-04-27 11:14:16 +00:00
|
|
|
server {
|
2021-04-27 11:17:30 +00:00
|
|
|
listen 80;
|
2021-04-27 11:14:16 +00:00
|
|
|
server_name {{ env "DOMAIN" }};
|
2021-04-27 11:02:11 +00:00
|
|
|
|
2021-04-27 11:14:16 +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
|
|
|
|
2021-04-27 11:14:16 +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;
|
|
|
|
}
|
|
|
|
|
2021-04-27 11:14:16 +00:00
|
|
|
# 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
|
|
|
|
2021-04-27 11:14:16 +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
|
|
|
|
2021-04-27 11:14:16 +00:00
|
|
|
# download, presentation and image upload
|
|
|
|
location ~ /lool {
|
2021-05-06 14:56:33 +00:00
|
|
|
proxy_pass http://collabora-upstream;
|
2021-04-27 11:14:16 +00:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
}
|
2021-04-27 11:02:11 +00:00
|
|
|
}
|
|
|
|
}
|