Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
ca44e0c3
Commit
ca44e0c3
authored
Oct 19, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update service name usages in nginx configuration
parent
b8a102dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
test/collabora/1.0.0/questions.yaml
test/collabora/1.0.0/questions.yaml
+2
-2
test/collabora/1.0.0/templates/nginx-conf.yaml
test/collabora/1.0.0/templates/nginx-conf.yaml
+10
-6
No files found.
test/collabora/1.0.0/questions.yaml
View file @
ca44e0c3
...
...
@@ -64,7 +64,7 @@ questions:
description
:
'
e.g.
"--o:welcome.enable=false",
See
more
on
/etc/loolwsd/loowsd.xml.
Separate
params
with
space'
schema
:
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
label
:
"
DONT_GEN_SSL_CERT"
description
:
"
When
set
to
true
it
does
NOT
generate
an
SSL
cert,
you
have
to
use
your
own"
...
...
@@ -82,7 +82,6 @@ questions:
schema
:
type
:
string
default
:
'
'
valid_chars
:
'
^$|^[a-z]{1,}\\{1}\.{1}[a-z]{1,}\\{1}\.{1}[a-z]{1,}$'
-
variable
:
certificate
description
:
"
Collabora
Certificate"
...
...
@@ -92,6 +91,7 @@ questions:
type
:
int
$ref
:
-
"
definitions/certificate"
null
:
false
-
variable
:
extraAppVolumeMounts
label
:
"
Collabora
Extra
Host
Path
Volumes"
...
...
test/collabora/1.0.0/templates/nginx-conf.yaml
View file @
ca44e0c3
{{
- $serviceName
:
= include "common.names.fullname" . -
}}
{{
- if hasKey .Values "nameSuffix" -
}}
{{
- $serviceName = (printf "%v-%v" $serviceName .Values.nameSuffix) -
}}
{{
- end -
}}
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
...
...
@@ -63,14 +67,14 @@ data:
# static files
location ^~ /loleaflet {
proxy_pass http://
collabora
:9980;
proxy_pass http://
{{ $serviceName }}
:9980;
proxy_set_header Host $host;
# proxy_set_header Referer "http://nginx";
}
# WOPI discovery URL
location ^~ /hosting/discovery {
set $upstream_collabora
collabora
;
set $upstream_collabora
{{ $serviceName }}
;
proxy_pass http://$upstream_collabora:9980;
proxy_set_header Host $http_host;
# proxy_set_header Referer "http://nginx";
...
...
@@ -78,14 +82,14 @@ data:
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://
collabora
:9980;
proxy_pass http://
{{ $serviceName }}
:9980;
proxy_set_header Host $host;
# proxy_set_header Referer "http://nginx";
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass http://
collabora
:9980;
proxy_pass http://
{{ $serviceName }}
:9980;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
...
...
@@ -95,14 +99,14 @@ data:
# download, presentation and image upload
location ~ ^/lool {
proxy_pass http://
collabora
:9980;
proxy_pass http://
{{ $serviceName }}
:9980;
proxy_set_header Host $host;
proxy_set_header Referer "http://nginx";
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass http://
collabora
:9980;
proxy_pass http://
{{ $serviceName }}
:9980;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment