From 97fd555cd12d022278125759b62901cd164d2c38 Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Mon, 26 Sep 2022 13:48:07 +0200 Subject: [PATCH] add scripts and styles web configuration --- services/web/pkg/config/config.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/services/web/pkg/config/config.go b/services/web/pkg/config/config.go index f77d64ad370..56cfc7873fb 100644 --- a/services/web/pkg/config/config.go +++ b/services/web/pkg/config/config.go @@ -39,6 +39,8 @@ type WebConfig struct { 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"` + Scripts []interface{} `json:"scripts,omitempty" yaml:"scripts"` + Styles []interface{} `json:"styles,omitempty" yaml:"styles"` } // OIDC defines the available oidc configuration @@ -60,13 +62,14 @@ type Application struct { } // ExternalApp defines an external web app. -// { -// "name": "hello", -// "path": "http://localhost:9105/hello.js", -// "config": { -// "url": "http://localhost:9105" -// } -// } +// +// { +// "name": "hello", +// "path": "http://localhost:9105/hello.js", +// "config": { +// "url": "http://localhost:9105" +// } +// } type ExternalApp struct { ID string `json:"id,omitempty" yaml:"id"` Path string `json:"path,omitempty" yaml:"path"`