Add support for custom footer

This commit is contained in:
Tom Wiesing 2023-01-08 08:13:47 +01:00
parent 9f3e7a7b86
commit a292c25f84
No known key found for this signature in database
7 changed files with 60 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/bootstrap"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/static/custom"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
)
@ -18,6 +19,8 @@ type Control struct {
Dependencies struct {
Routeables []component.Routeable
Cronables []component.Cronable
Custom *custom.Custom
}
}
@ -49,6 +52,8 @@ func (control *Control) Stack(env environment.Environment) component.StackWithRe
"GLOBAL_AUTHORIZED_KEYS_FILE": control.Config.GlobalAuthorizedKeysFile,
"SELF_OVERRIDES_FILE": control.Config.SelfOverridesFile,
"SELF_RESOLVER_BLOCK_FILE": control.Config.SelfResolverBlockFile,
"CUSTOM_ASSETS_PATH": control.Dependencies.Custom.CustomAssetsPath(),
},
CopyContextFiles: []string{bootstrap.Executable},