Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed May 2, 2023
1 parent a9261e0 commit c04d859
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
14 changes: 6 additions & 8 deletions charts/ocis/templates/web/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ data:
scripts:
{{- toYaml .Values.services.web.config.scripts | nindent 10 }}
{{- end }}
{{- if gt (len .Values.services.web.config.translations) 0 }}
custom_translations:
{{- toYaml .Values.services.web.config.translations | nindent 10 }}
{{- end }}
{{- if gt (len .Values.services.web.config.apps) 0 }}
apps:
{{- toYaml .Values.services.web.config.apps | nindent 10 }}
Expand All @@ -32,7 +36,7 @@ data:
{{- toYaml .Values.services.web.config.applications | nindent 10 }}
{{- end }}
options:
contextHelpersReadMore: {{ .Values.services.web.config.contextHelpersReadMore.enabled }}
disableFeedbackLink: {{ not .Values.services.web.config.feedbackLink.enabled }}
{{- if .Values.services.web.config.feedbackLink.enabled }}
{{- if (or .Values.services.web.config.feedbackLink.href .Values.services.web.config.feedbackLink.ariaLabel .Values.services.web.config.feedbackLink.description) }}
Expand All @@ -48,14 +52,8 @@ data:
{{- end }}
{{- end }}
{{- end }}
{{- if gt (len .Values.services.web.config.previewFileMimeTypes) 0 }}
previewFileMimeTypes:
{{- toYaml .Values.services.web.config.previewFileMimeTypes | nindent 12 }}
{{- end }}
{{- if .Values.features.externalUserManagement.oidc.sessionManagementLink }}
logoutUrl: {{ .Values.features.externalUserManagement.oidc.sessionManagementLink | quote }}
{{- end }}
{{- if .Values.features.externalUserManagement.oidc.editAccountLink }}
accountEditLink:
href: {{ .Values.features.externalUserManagement.oidc.editAccountLink | quote }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/ocis/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ spec:
- name: WEB_UI_CONFIG_SERVER
value: "https://{{ .Values.externalDomain }}"

- name: WEB_OPTION_CONTEXTHELPERS_READ_MORE
value: {{ .Values.services.web.config.contextHelpersReadMore.enabled | quote }}

{{- if .Values.features.externalUserManagement.oidc.sessionManagementLink }}
- name: WEB_OPTION_LOGOUT_URL
value: {{ .Values.features.externalUserManagement.oidc.sessionManagementLink | quote }}
{{- end }}

{{- if .Values.features.externalUserManagement.oidc.editAccountLink }}
- name: WEB_OPTION_ACCOUNT_EDIT_LINK_HREF
value: {{ .Values.features.externalUserManagement.oidc.editAccountLink | quote }}
{{- end }}

- name: WEB_GATEWAY_GRPC_ADDR #TODO: does not support fallback to REVA_GATEWAY as of oCIS 3.0.0-rc.1
value: {{ .appNameGateway }}:9142

Expand Down
13 changes: 8 additions & 5 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1129,11 +1129,15 @@ services:
# - image/x-ms-bmp

# -- Configure the {"styles": []} section in the Web config.json.
styles:
- href: /theme/foo.css
styles: []
# - href: /theme/foo.css
# -- Configure the {"styles": []} section in the Web config.json.
scripts:
- href: /theme/foo.js
scripts: []
# - src: /theme/foo.js
# async: true
# -- COnfigure custom translations
translations: []
# - url: https://foo.bar
# -- Configure the {"custom_translations": []} section in the Web config.json.
custom_translations: []
# -- Configure the {"apps": []} section in the Web config.json.
Expand Down Expand Up @@ -1172,7 +1176,6 @@ services:
# -- URL path to load themes from. The theme server will be prepended. Defaults to the ownCloud Web default theme.
path: ""

theme: [] #TODO

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

0 comments on commit c04d859

Please sign in to comment.