Hardcoded web options (#6188)
* use custom struct for web options Signed-off-by: jkoberg <jkoberg@owncloud.com> * update envvar descriptions Co-authored-by: Martin <github@diemattels.at> * Use correct defaults * fix code style --------- Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu> Co-authored-by: Martin <github@diemattels.at> Co-authored-by: Michael Barz <mbarz@owncloud.com>
This commit is contained in:
co-authored by
Martin
Michael Barz
Michael Barz
parent
ee9a524bf5
commit
44de28843f
@@ -51,16 +51,16 @@ type CustomTranslation struct {
|
||||
|
||||
// WebConfig defines the available web configuration for a dynamically rendered config.json.
|
||||
type WebConfig struct {
|
||||
Server string `json:"server,omitempty" yaml:"server" env:"OCIS_URL;WEB_UI_CONFIG_SERVER" desc:"URL, where the oCIS APIs are reachable for ownCloud Web."`
|
||||
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"`
|
||||
Styles []CustomStyle `json:"styles,omitempty" yaml:"styles"`
|
||||
Scripts []CustomScript `json:"scripts,omitempty" yaml:"scripts"`
|
||||
Translations []CustomTranslation `json:"customTranslations,omitempty" yaml:"custom_translations"`
|
||||
Server string `json:"server,omitempty" yaml:"server" env:"OCIS_URL;WEB_UI_CONFIG_SERVER" desc:"URL, where the oCIS APIs are reachable for ownCloud Web."`
|
||||
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 Options `json:"options,omitempty" yaml:"options"`
|
||||
Styles []CustomStyle `json:"styles,omitempty" yaml:"styles"`
|
||||
Scripts []CustomScript `json:"scripts,omitempty" yaml:"scripts"`
|
||||
Translations []CustomTranslation `json:"customTranslations,omitempty" yaml:"custom_translations"`
|
||||
}
|
||||
|
||||
// OIDC defines the available oidc configuration
|
||||
|
||||
Reference in New Issue
Block a user