diff --git a/changelog/unreleased/enhancement-web-applications.md b/changelog/unreleased/enhancement-web-applications.md new file mode 100644 index 000000000..abf176a2a --- /dev/null +++ b/changelog/unreleased/enhancement-web-applications.md @@ -0,0 +1,5 @@ +Enhancement: Allow to configure applications in Web + +We've added the possibility to configure applications in the Web configuration. + +https://github.com/owncloud/ocis/pull/4578 diff --git a/services/web/pkg/config/config.go b/services/web/pkg/config/config.go index cf12fe65d..f77d64ad3 100644 --- a/services/web/pkg/config/config.go +++ b/services/web/pkg/config/config.go @@ -36,6 +36,7 @@ type WebConfig struct { Theme string `json:"theme,omitempty" yaml:"-"` OpenIDConnect OIDC `json:"openIdConnect,omitempty" yaml:"oidc"` Apps []string `json:"apps" yaml:"apps"` + Applications []Application `json:"applications,omitempty" yaml:"applications"` ExternalApps []ExternalApp `json:"external_apps,omitempty" yaml:"external_apps"` Options map[string]interface{} `json:"options,omitempty" yaml:"options"` } @@ -49,6 +50,15 @@ type OIDC struct { Scope string `json:"scope,omitempty" yaml:"scope" env:"WEB_OIDC_SCOPE" desc:"OIDC scopes to request during authentication."` } +// Application defines an application for the Web app switcher. +type Application struct { + Icon string `json:"icon,omitempty" yaml:"icon"` + Target string `json:"target,omitempty" yaml:"target"` + Title map[string]string `json:"title,omitempty" yaml:"title"` + Menu string `json:"menu,omitempty" yaml:"menu"` + URL string `json:"url,omitempty" yaml:"url"` +} + // ExternalApp defines an external web app. // { // "name": "hello",