Skip to content

Commit

Permalink
add scripts and styles web configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fschade committed Sep 26, 2022
1 parent e6cf485 commit 97fd555
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions services/web/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"`
Expand Down

0 comments on commit 97fd555

Please sign in to comment.