Skip to content

Commit

Permalink
add configs for web embed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 8, 2023
1 parent c9d6e87 commit 3761149
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/ocis/docs/values.adoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,10 @@ services:
privacyURL:
# Specifies the login url
loginURL:
# Specifies the mode web is running in. Currently supported values are "embed" and "" (default).
mode: ""
# Specifies how web is being integrated when running in "embed"-mode. Currently supported values are "location" and "" (default).
embedTarget: ""

# -- Persistence settings.
# @default -- see detailed persistence configuration options below
Expand Down
10 changes: 10 additions & 0 deletions charts/ocis/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ spec:
value: {{ .Values.services.web.config.theme.path | quote }}
{{- end }}

{{- if .Values.services.web.config.mode }}
- name: WEB_OPTION_MODE
value: {{ .Values.services.web.config.mode | quote }}
{{- end }}

{{- if .Values.services.web.config.embedTarget }}
- name: WEB_OPTION_EMBED_TARGET
value: {{ .Values.services.web.config.embedTarget | quote }}
{{- end }}

- name: WEB_UI_CONFIG_SERVER
value: "https://{{ .Values.externalDomain }}"

Expand Down
4 changes: 4 additions & 0 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,10 @@ services:
privacyURL:
# Specifies the login url
loginURL:
# Specifies the mode web is running in. Currently supported values are "embed" and "" (default).
mode: ""
# Specifies how web is being integrated when running in "embed"-mode. Currently supported values are "location" and "" (default).
embedTarget: ""

# -- Persistence settings.
# @default -- see detailed persistence configuration options below
Expand Down

0 comments on commit 3761149

Please sign in to comment.