mirror of
https://github.com/truenas/charts.git
synced 2026-11-23 07:16:13 +00:00
Update service name usages in nginx configuration
This commit is contained in:
1 parent
b8a102dd5a
commit
ca44e0c385
2 files changed
+12
-8
No files matched your search
@@ -64,7 +64,7 @@ questions:
|
|||||||
description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space'
|
description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false --o:net.proto=IPv4"
|
default: "--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false --o:net.proto=IPv4 --o:net.post_allow.host[0]=.+ --o:storage.wopi.host[0]=.+"
|
||||||
- variable: DONT_GEN_SSL_CERT
|
- variable: DONT_GEN_SSL_CERT
|
||||||
label: "DONT_GEN_SSL_CERT"
|
label: "DONT_GEN_SSL_CERT"
|
||||||
description: "When set to true it does NOT generate an SSL cert, you have to use your own"
|
description: "When set to true it does NOT generate an SSL cert, you have to use your own"
|
||||||
@@ -82,7 +82,6 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ''
|
default: ''
|
||||||
valid_chars: '^$|^[a-z]{1,}\\{1}\.{1}[a-z]{1,}\\{1}\.{1}[a-z]{1,}$'
|
|
||||||
|
|
||||||
- variable: certificate
|
- variable: certificate
|
||||||
description: "Collabora Certificate"
|
description: "Collabora Certificate"
|
||||||
@@ -92,6 +91,7 @@ questions:
|
|||||||
type: int
|
type: int
|
||||||
$ref:
|
$ref:
|
||||||
- "definitions/certificate"
|
- "definitions/certificate"
|
||||||
|
null: false
|
||||||
|
|
||||||
- variable: extraAppVolumeMounts
|
- variable: extraAppVolumeMounts
|
||||||
label: "Collabora Extra Host Path Volumes"
|
label: "Collabora Extra Host Path Volumes"
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
{{- $serviceName := include "common.names.fullname" . -}}
|
||||||
|
{{- if hasKey .Values "nameSuffix" -}}
|
||||||
|
{{- $serviceName = (printf "%v-%v" $serviceName .Values.nameSuffix) -}}
|
||||||
|
{{- end -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
@@ -63,14 +67,14 @@ data:
|
|||||||
|
|
||||||
# static files
|
# static files
|
||||||
location ^~ /loleaflet {
|
location ^~ /loleaflet {
|
||||||
proxy_pass http://collabora:9980;
|
proxy_pass http://{{ $serviceName }}:9980;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
# proxy_set_header Referer "http://nginx";
|
# proxy_set_header Referer "http://nginx";
|
||||||
}
|
}
|
||||||
|
|
||||||
# WOPI discovery URL
|
# WOPI discovery URL
|
||||||
location ^~ /hosting/discovery {
|
location ^~ /hosting/discovery {
|
||||||
set $upstream_collabora collabora;
|
set $upstream_collabora {{ $serviceName }};
|
||||||
proxy_pass http://$upstream_collabora:9980;
|
proxy_pass http://$upstream_collabora:9980;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
# proxy_set_header Referer "http://nginx";
|
# proxy_set_header Referer "http://nginx";
|
||||||
@@ -78,14 +82,14 @@ data:
|
|||||||
|
|
||||||
# Capabilities
|
# Capabilities
|
||||||
location ^~ /hosting/capabilities {
|
location ^~ /hosting/capabilities {
|
||||||
proxy_pass http://collabora:9980;
|
proxy_pass http://{{ $serviceName }}:9980;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
# proxy_set_header Referer "http://nginx";
|
# proxy_set_header Referer "http://nginx";
|
||||||
}
|
}
|
||||||
|
|
||||||
# main websocket
|
# main websocket
|
||||||
location ~ ^/lool/(.*)/ws$ {
|
location ~ ^/lool/(.*)/ws$ {
|
||||||
proxy_pass http://collabora:9980;
|
proxy_pass http://{{ $serviceName }}:9980;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
@@ -95,14 +99,14 @@ data:
|
|||||||
|
|
||||||
# download, presentation and image upload
|
# download, presentation and image upload
|
||||||
location ~ ^/lool {
|
location ~ ^/lool {
|
||||||
proxy_pass http://collabora:9980;
|
proxy_pass http://{{ $serviceName }}:9980;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Referer "http://nginx";
|
proxy_set_header Referer "http://nginx";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Admin Console websocket
|
# Admin Console websocket
|
||||||
location ^~ /lool/adminws {
|
location ^~ /lool/adminws {
|
||||||
proxy_pass http://collabora:9980;
|
proxy_pass http://{{ $serviceName }}:9980;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
|
|||||||
Reference in new issue
Block a user