libreoffice-online/etc/nginx/loolwsd-nossl.conf.template
Andras Timar 18751d35fa nginx and apache2 config templates
Change-Id: I1e2572617909d7aefb951d3299810f521f56062c
2018-09-20 10:18:57 +02:00

35 lines
1.1 KiB
Text

# static files
location ^~ ${loolwsd_service_root}/loleaflet {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ ${loolwsd_service_root}/hosting/discovery {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^${loolwsd_service_root}/lool/(.*)/ws$ {
proxy_pass http://localhost: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 ~ ^${loolwsd_service_root}/lool {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ ${loolwsd_service_root}/lool/adminws {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}