Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 1 | ||||
| -rw-r--r-- | config/config.local.yaml | 24 | ||||
| -rw-r--r-- | config/config.prod.yaml | 30 | ||||
| -rw-r--r-- | config/config.stage.yaml | 29 |
4 files changed, 50 insertions, 34 deletions
diff --git a/config/config.go b/config/config.go index 784ac38..0b1570a 100644 --- a/config/config.go +++ b/config/config.go @@ -238,6 +238,7 @@ type TriggerConfig struct { type MetaConfig struct { GoogleSiteVerification string `json:"GoogleSiteVerification" yaml:"googleSiteVerification"` + YandexVerification string `json:"YandexVerification" yaml:"yandexVerification"` } type PhotoStorageConfig struct { diff --git a/config/config.local.yaml b/config/config.local.yaml index 1822fdc..d3e2e33 100644 --- a/config/config.local.yaml +++ b/config/config.local.yaml @@ -5,22 +5,26 @@ endpoint: listenOn: ":3000" blogPages: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "stage-" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factGiver: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factsFileName: "facts-*.txt" localePath: ./locale/ availableLanguages: diff --git a/config/config.prod.yaml b/config/config.prod.yaml index 0b45e1a..e5785f8 100644 --- a/config/config.prod.yaml +++ b/config/config.prod.yaml @@ -1,26 +1,31 @@ logLevel: info endpoint: - type: http + type: unix config: - listenOn: ":3000" + path: "/etc/sayauz/prod.socket" + chmod: '0666' blogPages: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "prod-" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factGiver: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factsFileName: "facts-*.txt" localePath: ./locale/ availableLanguages: @@ -51,6 +56,7 @@ mail: canonicalEndpoint: "https://${FQDN}" meta: googleSiteVerification: "${GOOGLE_SITE_VERIFICATION}" + yandexVerification: "${YANDEX_VERIFICATION}" photoStorage: full: baseUrl: https://storage.yandexcloud.kz/sayauz-photos/%s diff --git a/config/config.stage.yaml b/config/config.stage.yaml index 23b76aa..c2e337b 100644 --- a/config/config.stage.yaml +++ b/config/config.stage.yaml @@ -1,26 +1,31 @@ logLevel: debug endpoint: - type: http + type: unix config: - listenOn: ":3000" + path: "/etc/sayauz/stage.socket" + chmod: '0666' blogPages: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "stage-" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factGiver: storage: - type: b2 + type: s3 config: - bucketName: sayana-pages - region: eu-central-003 + bucketName: sayauz-pages + region: kz1 prefix: "" - keyID: "${B2_KEY_ID}" - applicationKey: "${B2_APPLICATION_KEY}" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" factsFileName: "facts-*.txt" localePath: ./locale/ availableLanguages: |