fixing style
Some checks failed
Build, test, and publish / Build and test (push) Has been cancelled
Build, test, and publish / Build and push Docker image (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
Daniel Noulet 2026-10-07 15:10:10 +02:00
parent e454940dfa
commit f40485842d
35 changed files with 16000 additions and 286 deletions

View file

@ -10,6 +10,12 @@ type Config struct {
HTTPAddr, Profile, ContentFile, PostgresURL string
AllowedOrigins, SSOHeader, SSOToken, SSOCookie string
GoLoose GoLooseConfig
// ThemeBaseURL is the go-bananas origin supplying the shared styling contract.
// Empty keeps this application's own fallbacks, which is the safe default: the
// stylesheet is written as var(--bn-role, <colour>), so a missing contract
// degrades to the palette it always had rather than to an unstyled page.
ThemeBaseURL string
}
// GoLooseConfig describes the Go Loose hosted-login integration. Go Tell is
@ -39,6 +45,7 @@ func Load() Config {
SSOHeader: get("CMS_SSO_HEADER", "X-SSO-Token"),
SSOToken: get("CMS_SSO_TOKEN", ""),
SSOCookie: get("CMS_SSO_COOKIE", ""),
ThemeBaseURL: get("CMS_THEME_BASE_URL", ""),
GoLoose: GoLooseConfig{
Tenant: get("GO_LOOSE_TENANT", "tell"),
AuthDomain: get("GO_LOOSE_AUTH_DOMAIN", "auth.dev"),