summaryrefslogtreecommitdiff
path: root/config
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go1
-rw-r--r--config/config.local.yaml24
-rw-r--r--config/config.prod.yaml25
-rw-r--r--config/config.stage.yaml24
4 files changed, 30 insertions, 44 deletions
diff --git a/config/config.go b/config/config.go
index 0b1570a..784ac38 100644
--- a/config/config.go
+++ b/config/config.go
@@ -238,7 +238,6 @@ 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 d3e2e33..1822fdc 100644
--- a/config/config.local.yaml
+++ b/config/config.local.yaml
@@ -5,26 +5,22 @@ endpoint:
listenOn: ":3000"
blogPages:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: "stage-"
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factGiver:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: ""
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factsFileName: "facts-*.txt"
localePath: ./locale/
availableLanguages:
diff --git a/config/config.prod.yaml b/config/config.prod.yaml
index e5785f8..2daa3ff 100644
--- a/config/config.prod.yaml
+++ b/config/config.prod.yaml
@@ -6,26 +6,22 @@ endpoint:
chmod: '0666'
blogPages:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: "prod-"
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factGiver:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: ""
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factsFileName: "facts-*.txt"
localePath: ./locale/
availableLanguages:
@@ -56,7 +52,6 @@ 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 c2e337b..151bb4a 100644
--- a/config/config.stage.yaml
+++ b/config/config.stage.yaml
@@ -6,26 +6,22 @@ endpoint:
chmod: '0666'
blogPages:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: "stage-"
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factGiver:
storage:
- type: s3
+ type: b2
config:
- bucketName: sayauz-pages
- region: kz1
+ bucketName: sayana-pages
+ region: eu-central-003
prefix: ""
- endpoint: "https://storage.yandexcloud.kz"
- usePathStyle: true
- accessKeyID: "${S3_ACCESS_KEY_ID}"
- secretAccessKey: "${S3_SECRET_ACCESS_KEY}"
+ keyID: "${B2_KEY_ID}"
+ applicationKey: "${B2_APPLICATION_KEY}"
factsFileName: "facts-*.txt"
localePath: ./locale/
availableLanguages: