diff options
| author | 2026-03-31 01:12:34 +0700 | |
|---|---|---|
| committer | 2026-03-31 01:12:34 +0700 | |
| commit | 4c05d4c66827d6e5a131c657ee08293bcde497d1 (patch) | |
| tree | e2dcbcc2650da76f0b4cc69e10e86568b4e7e7e6 /config | |
| parent | abc9e2fc1e93fba0b274f31b95340c411a73dd6d (diff) | |
| parent | 85fbaeb091d0bc26b828bb4537664325d93dd119 (diff) | |
| download | web-0.13.1.tar.gz web-0.13.1.zip | |
v0.13.1 (#26)v0.13.1
- feat: add google site verification token for prod
- fix: description meta content
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 5 | ||||
| -rw-r--r-- | config/config.prod.yaml | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index fd8c480..eb4a91d 100644 --- a/config/config.go +++ b/config/config.go @@ -17,6 +17,7 @@ type Config struct { Auth AuthConfig `json:"Auth" yaml:"auth" validate:"required"` Mail MailConfig `json:"Mail" yaml:"mail" validate:"required"` CanonicalEndpoint string `json:"CanonicalEndpoint" yaml:"canonicalEndpoint" validate:"required"` + Meta MetaConfig `json:"Meta" yaml:"meta"` } type BlogPagesConfig struct { @@ -77,6 +78,10 @@ type TriggerConfig struct { OnNewPost string `json:"OnNewPost" yaml:"onNewPost" validate:"cron,required"` } +type MetaConfig struct { + GoogleSiteVerification string `json:"GoogleSiteVerification" yaml:"googleSiteVerification"` +} + func LoadConfig(path string, config *Config) error { fileBytes, err := os.ReadFile(path) if err != nil { diff --git a/config/config.prod.yaml b/config/config.prod.yaml index 4de853c..b40ba57 100644 --- a/config/config.prod.yaml +++ b/config/config.prod.yaml @@ -45,3 +45,5 @@ mail: trigger: onNewPost: "0/5 * * * *" canonicalEndpoint: 'https://${FQDN}' +meta: + googleSiteVerification: '${GOOGLE_SITE_VERIFICATION}' |