mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 07:21:36 +01:00
feat(collabora): Support for macro execution controlled by functional.weboffice.macros.enabled (default: false)
This commit is contained in:
@@ -20,6 +20,11 @@ collabora:
|
||||
--o:num_prespawn_children={{ .Values.technical.collabora.numPrespawnChildren }}
|
||||
--o:remote_font_config.url=https://{{ .Values.global.hosts.nextcloud }}.{{ .Values.global.domain }}/apps/richdocuments/settings/fonts.json
|
||||
--o:net.proto={{ if eq .Values.cluster.networking.ipFamilies "DualStack" }}all{{ else }}{{ .Values.cluster.networking.ipFamilies }}{{ end }}
|
||||
--o:security.enable_macros_execution={{ .Values.functional.weboffice.macros.enabled }}
|
||||
--o:security.macro_security_level={{- $val := printf "%v" .Values.functional.weboffice.macros.securityLevel -}}{{- if or (eq $val "0") (eq $val "1") -}}{{ $val }}
|
||||
{{- else -}}
|
||||
{{ fail (printf "Invalid value for functional.weboffice.macros.securityLevel: '%s'. Allowed values: 0 or 1" $val) }}
|
||||
{{- end }}
|
||||
{{- if .Values.debug.enabled }}
|
||||
--o:logging.level=debug
|
||||
{{- else }}
|
||||
|
||||
@@ -222,5 +222,13 @@ functional:
|
||||
# You can choose between "ODF" and "OOXML".
|
||||
# Ref.: https://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_and_OpenDocument
|
||||
defaultFormat: "ODF"
|
||||
|
||||
# Macro related options.
|
||||
macros:
|
||||
# Specifies whether the macro execution (Basic and Python scripts) is enabled in general.
|
||||
# If set to false, the `securityLevel` is ignored.
|
||||
enabled: false
|
||||
# Chose from the following values:
|
||||
# 1: Confirmation required before executing macros from untrusted sources.
|
||||
# 0: All macros will be executed without confirmation.
|
||||
securityLevel: 1
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user