feat(api): GET/PUT /api/config serving app + env configuration

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-04 00:16:26 +02:00
parent e6cb21c65a
commit d45489714d
4 changed files with 200 additions and 0 deletions

View File

@@ -66,6 +66,10 @@ func main() {
FrontendURL: cfg.FrontendURL,
})
for _, e := range cfg.DisplayEnv() {
server.EnvVars = append(server.EnvVars, api.EnvVar{Name: e.Name, Value: e.Value})
}
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()