all repos — homestead @ 7daa101d37a2c25aaab8c8e7ffe82658669afb4d

Code for my website

tweak configuration schema

Alan Pearce
commit

7daa101d37a2c25aaab8c8e7ffe82658669afb4d

parent

e4e8173ab6124daa84ef012e73c111f111d4a8cf

1 file changed, 14 insertions(+), 15 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -32,21 +32,20 @@ return errors.WithMessagef(err, "could not parse URL %s", string(text))
} type Config struct { - DefaultLanguage string `toml:"default_language"` - BaseURL URL `toml:"base_url"` - InjectLiveReload bool - Title string - Email string - Description string - DomainStartDate string `toml:"domain_start_date"` - OriginalDomain string `toml:"original_domain"` - GoatCounter URL `toml:"goatcounter"` - Domains []string - WildcardDomain string `toml:"wildcard_domain"` - OIDCHost URL `toml:"oidc_host"` - Taxonomies []Taxonomy - CSP *CSP `toml:"content-security-policy"` - Extra struct { + Language string `toml:"language"` + BaseURL URL `toml:"base_url"` + Title string + Email string + Description string + DomainStartDate string `toml:"domain_start_date"` + OriginalDomain string `toml:"original_domain"` + GoatCounter URL `toml:"goatcounter"` + Domains []string + WildcardDomain string `toml:"wildcard_domain"` + OIDCHost URL `toml:"oidc_host"` + Taxonomies []Taxonomy + CSP *CSP `toml:"content-security-policy"` + Extra struct { Headers map[string]string } Menus map[string][]MenuItem