Testing
This commit is contained in:
@@ -42,6 +42,11 @@ services:
|
|||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
traefik.enable: false
|
traefik.enable: false
|
||||||
|
links:
|
||||||
|
- mysql
|
||||||
|
{{- if eq .Values.REDIS "true"}}
|
||||||
|
- redis
|
||||||
|
{{- end}}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- nginx
|
- nginx
|
||||||
@@ -75,17 +80,13 @@ services:
|
|||||||
traefik.collabora.frontend.headers.STSPreload: true
|
traefik.collabora.frontend.headers.STSPreload: true
|
||||||
traefik.collabora.frontend.headers.STSSeconds: 15552000
|
traefik.collabora.frontend.headers.STSSeconds: 15552000
|
||||||
traefik.collabora.frontend.rule: Host:collabora.${TRAEFIK_HOST}
|
traefik.collabora.frontend.rule: Host:collabora.${TRAEFIK_HOST}
|
||||||
traefik.collabora.port: "9980"
|
traefik.collabora.port: "81"
|
||||||
### End Collabora Segment
|
### End Collabora Segment
|
||||||
links:
|
links:
|
||||||
{{- if eq .Values.COLLABORA "true"}}
|
{{- if eq .Values.COLLABORA "true"}}
|
||||||
- collabora
|
- collabora
|
||||||
{{- end}}
|
{{- end}}
|
||||||
- mysql
|
|
||||||
- nextcloud
|
- nextcloud
|
||||||
{{- if eq .Values.REDIS "true"}}
|
|
||||||
- redis
|
|
||||||
{{- end}}
|
|
||||||
networks:
|
networks:
|
||||||
- public-proxy
|
- public-proxy
|
||||||
{{- if .Values.WEB_PORT}}
|
{{- if .Values.WEB_PORT}}
|
||||||
|
|||||||
@@ -21,10 +21,13 @@ http {
|
|||||||
server nextcloud:9000;
|
server nextcloud:9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream collabora {
|
||||||
|
server collabora:9980
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name _;
|
|
||||||
|
|
||||||
# Add headers to serve security related headers
|
# Add headers to serve security related headers
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
@@ -125,4 +128,45 @@ http {
|
|||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 81;
|
||||||
|
listen [::]:81;
|
||||||
|
|
||||||
|
# static files
|
||||||
|
location ^~ /loleaflet {
|
||||||
|
proxy_pass collabora;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
# WOPI discovery URL
|
||||||
|
location ^~ /hosting/discovery {
|
||||||
|
proxy_pass collabora;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
# main websocket
|
||||||
|
location ~ ^/lool/(.*)/ws$ {
|
||||||
|
proxy_pass collabora;
|
||||||
|
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 ~ ^/lool {
|
||||||
|
proxy_pass collabora;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Admin Console websocket
|
||||||
|
location ^~ /lool/adminws {
|
||||||
|
proxy_pass collabora;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_read_timeout 36000s;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user