diff options
| author | 2026-03-30 23:25:59 +0700 | |
|---|---|---|
| committer | 2026-03-30 23:25:59 +0700 | |
| commit | 7a40c01dd14f04787f5052d0c89e0d6fb9ce597f (patch) | |
| tree | 4edc2d756295cbbf1f935a5f681b6be69b5584b4 /config | |
| parent | 52fbb4a4eb781dd4ba66fae0e1ceaec6721758f5 (diff) | |
| download | web-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.tar.gz web-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.zip | |
feat: build sitemap.xml
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 1 | ||||
| -rw-r--r-- | config/config.local.yaml | 1 | ||||
| -rw-r--r-- | config/config.prod.yaml | 1 | ||||
| -rw-r--r-- | config/config.stage.yaml | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 1393dd8..fd8c480 100644 --- a/config/config.go +++ b/config/config.go @@ -16,6 +16,7 @@ type Config struct { AvailableLanguages []AvailableLanguageConfig `json:"AvailableLanguages" yaml:"availableLanguages" validate:"required"` Auth AuthConfig `json:"Auth" yaml:"auth" validate:"required"` Mail MailConfig `json:"Mail" yaml:"mail" validate:"required"` + CanonicalEndpoint string `json:"CanonicalEndpoint" yaml:"canonicalEndpoint" validate:"required"` } type BlogPagesConfig struct { diff --git a/config/config.local.yaml b/config/config.local.yaml index e23c808..c02dc2d 100644 --- a/config/config.local.yaml +++ b/config/config.local.yaml @@ -45,3 +45,4 @@ mail: salt: '${MAIL_SALT}' trigger: onNewPost: "* * * * *" +canonicalEndpoint: 'http://127.0.0.1:3000' diff --git a/config/config.prod.yaml b/config/config.prod.yaml index 0bee79d..4de853c 100644 --- a/config/config.prod.yaml +++ b/config/config.prod.yaml @@ -44,3 +44,4 @@ mail: salt: '${MAIL_SALT}' trigger: onNewPost: "0/5 * * * *" +canonicalEndpoint: 'https://${FQDN}' diff --git a/config/config.stage.yaml b/config/config.stage.yaml index 1c15dae..efa94ae 100644 --- a/config/config.stage.yaml +++ b/config/config.stage.yaml @@ -44,3 +44,4 @@ mail: salt: '${MAIL_SALT}' trigger: onNewPost: "0/3 * * * *" +canonicalEndpoint: 'https://${FQDN}' |