summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/templates/nginx-vhost.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-22 00:10:01 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-22 00:10:01 +0100
commit083d7795e0d7da7e5f87d0d424846c57a7ae0e55 (patch)
treef869e56bf5c798568cfc62519473e613226436d4 /roles/apps/collabora/code/templates/nginx-vhost.conf.j2
parentcrictl 1.23.0 is finally available (diff)
sk-cloudio: upgrade kubernetes and collabora
Diffstat (limited to 'roles/apps/collabora/code/templates/nginx-vhost.conf.j2')
-rw-r--r--roles/apps/collabora/code/templates/nginx-vhost.conf.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/apps/collabora/code/templates/nginx-vhost.conf.j2 b/roles/apps/collabora/code/templates/nginx-vhost.conf.j2
index a14113f0..d56d77a0 100644
--- a/roles/apps/collabora/code/templates/nginx-vhost.conf.j2
+++ b/roles/apps/collabora/code/templates/nginx-vhost.conf.j2
@@ -25,7 +25,11 @@ server {
client_max_body_size 128M;
# static files
+{% if item.value.version | collabora_code_loolvcool %}
location ^~ /loleaflet {
+{% else %}
+ location ^~ /browser {
+{% endif %}
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
@@ -61,7 +65,11 @@ server {
}
# main websocket
+{% if item.value.version | collabora_code_loolvcool %}
location ~ ^/lool/(.*)/ws$ {
+{% else %}
+ location ~ ^/cool/(.*)/ws$ {
+{% endif %}
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
@@ -78,7 +86,11 @@ server {
}
# download, presentation and image upload
+{% if item.value.version | collabora_code_loolvcool %}
location ~ ^/lool {
+{% else %}
+ location ~ ^/(c|l)ool {
+{% endif %}
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
@@ -90,7 +102,11 @@ server {
}
# Admin Console websocket
+{% if item.value.version | collabora_code_loolvcool %}
location ^~ /lool/adminws {
+{% else %}
+ location ^~ /cool/adminws {
+{% endif %}
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;