diff options
| author | 2026-03-31 01:07:56 +0700 | |
|---|---|---|
| committer | 2026-03-31 01:07:56 +0700 | |
| commit | 5fae0a060450cd725c398f4d2d769d4c702a8ec3 (patch) | |
| tree | be2784c8b1066c2d38a752dc5338c44b2a95c9ee /config | |
| parent | a8f566cbeb8358aca7fb4532d8b69c513ef197f3 (diff) | |
| download | web-5fae0a060450cd725c398f4d2d769d4c702a8ec3.tar.gz web-5fae0a060450cd725c398f4d2d769d4c702a8ec3.zip | |
feat: add google site verification token for prod
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}' |