generated from coop-cloud/example
Don't use upstream
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e6cb702d94
commit
e73911b1e4
|
@ -1,26 +1,22 @@
|
||||||
upstream collabora-upstream {
|
|
||||||
server app:9980;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name {{ env "DOMAIN" }};
|
server_name {{ env "DOMAIN" }};
|
||||||
|
|
||||||
# static files
|
# static files
|
||||||
location ^~ /loleaflet {
|
location ^~ /loleaflet {
|
||||||
proxy_pass http://collabora-upstream;
|
proxy_pass http://app:9980;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
# WOPI discovery URL
|
# WOPI discovery URL
|
||||||
location ^~ /hosting/discovery {
|
location ^~ /hosting/discovery {
|
||||||
proxy_pass http://collabora-upstream;
|
proxy_pass http://app:9980;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main websocket
|
# Main websocket
|
||||||
location ~ /lool/(.*)/ws$ {
|
location ~ /lool/(.*)/ws$ {
|
||||||
proxy_pass http://collabora-upstream;
|
proxy_pass http://app:9980;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
@ -30,7 +26,7 @@ server {
|
||||||
# Admin Console websocket
|
# Admin Console websocket
|
||||||
location ^~ /lool/adminws {
|
location ^~ /lool/adminws {
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_pass http://collabora-upstream;
|
proxy_pass http://app:9980;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
@ -39,7 +35,7 @@ server {
|
||||||
|
|
||||||
# download, presentation and image upload
|
# download, presentation and image upload
|
||||||
location ~ /lool {
|
location ~ /lool {
|
||||||
proxy_pass https://collabora-upstream;
|
proxy_pass https://app:9980;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue