diff --git a/changelog/unreleased/enhancement-add-imprint-privacy-url-config.md b/changelog/unreleased/enhancement-add-imprint-privacy-url-config.md new file mode 100644 index 00000000000..990e1a560c2 --- /dev/null +++ b/changelog/unreleased/enhancement-add-imprint-privacy-url-config.md @@ -0,0 +1,5 @@ +Enhancement: Add companion URL config + +Introduce a config to set the imprint and privacy url via `WEB_OPTION_IMPRINT_URL` and `WEB_OPTION_PRIVACY_URL`. + +https://github.com/owncloud/ocis/pull/6462 diff --git a/services/web/pkg/config/options.go b/services/web/pkg/config/options.go index 2ea9696391b..0dad7b65ad1 100644 --- a/services/web/pkg/config/options.go +++ b/services/web/pkg/config/options.go @@ -20,6 +20,8 @@ type Options struct { ContextHelpersReadMore bool `json:"contextHelpersReadMore,omitempty" yaml:"contextHelpersReadMore" env:"WEB_OPTION_CONTEXTHELPERS_READ_MORE" desc:"Specifies whether the 'Read more' link should be displayed or not."` LogoutURL string `json:"logoutUrl,omitempty" yaml:"logoutUrl" env:"WEB_OPTION_LOGOUT_URL" desc:"Adds a link to the user's profile page to point him to an external page, where he can manage his session and devices. This is helpful when an external IdP is used. This option is disabled by default."` OpenLinksWithDefaultApp bool `json:"openLinksWithDefaultApp,omitempty" yaml:"openLinksWithDefaultApp" env:"WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP" desc:"Specifies whether single file link shares should be opened with the default app or not. If not opened by the default app, the Web UI just displays the file details. Defaults to 'true'."` + ImprintURL string `json:"imprintUrl,omitempty" yaml:"imprintUrl" env:"WEB_OPTION_IMPRINT_URL" desc:"Specifies the target url for the imprint link in the account menu"` + PrivacyURL string `json:"privacyUrl,omitempty" yaml:"privacyUrl" env:"WEB_OPTION_PRIVACY_URL" desc:"Specifies the target url for the privacy link in the account menu"` } // AccountEditLink are the AccountEditLink options