diff options
| author | 2026-06-21 03:20:59 +0700 | |
|---|---|---|
| committer | 2026-06-21 03:20:59 +0700 | |
| commit | 27f449904d21eebe0fb36a9dfaaf8218130334e4 (patch) | |
| tree | 3f2e953275b22f2dfd066cf101afd0f751fe32f1 /config | |
| parent | 76908947c4164eef2a632fad2900adebb61ffb58 (diff) | |
| parent | 86374eae688fd184fdd57e876a534ebc37b19974 (diff) | |
| download | web-0.17.3.tar.gz web-0.17.3.zip | |
v0.17.3 (#45)v0.17.3
- feat: add bing verification meta
- refactor: allow custom meta fields
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 6 | ||||
| -rw-r--r-- | config/config.prod.yaml | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/config/config.go b/config/config.go index 8ab1bfc..9185e6a 100644 --- a/config/config.go +++ b/config/config.go @@ -20,7 +20,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"` + Meta []MetaConfig `json:"Meta" yaml:"meta"` PhotoStorage PhotoStorageConfig `json:"PhotoStorage" yaml:"photoStorage"` StaticStorage StaticStorageConfig `json:"StaticStorage" yaml:"staticStorage" validate:"required"` AllowOrigins []string `json:"AllowOrigins" yaml:"allowOrigins"` @@ -237,8 +237,8 @@ type TriggerConfig struct { } type MetaConfig struct { - GoogleSiteVerification string `json:"GoogleSiteVerification" yaml:"googleSiteVerification"` - YandexVerification string `json:"YandexVerification" yaml:"yandexVerification"` + Name string `json:"Name" yaml:"name"` + Value string `json:"Value" yaml:"value"` } type PhotoStorageConfig struct { diff --git a/config/config.prod.yaml b/config/config.prod.yaml index ce0941d..6ec00d8 100644 --- a/config/config.prod.yaml +++ b/config/config.prod.yaml @@ -55,8 +55,12 @@ mail: onNewPost: "0/5 * * * *" canonicalEndpoint: "https://${FQDN}" meta: - googleSiteVerification: "${GOOGLE_SITE_VERIFICATION}" - yandexVerification: "${YANDEX_VERIFICATION}" + - name: google-site-verification + value: "${GOOGLE_SITE_VERIFICATION}" + - name: yandex-verification + value: "${YANDEX_VERIFICATION}" + - name: msvalidate.01 + value: "${BING_VERIFICATION}" photoStorage: full: baseUrl: https://cdn.saya.uz/photos/jpeg-full/%s |