Diffstat (limited to 'config/config.local.yaml')
| -rw-r--r-- | config/config.local.yaml | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/config/config.local.yaml b/config/config.local.yaml new file mode 100644 index 0000000..d3e2e33 --- /dev/null +++ b/config/config.local.yaml @@ -0,0 +1,78 @@ +logLevel: debug +endpoint: + type: http + config: + listenOn: ":3000" +blogPages: + storage: + type: s3 + config: + bucketName: sayauz-pages + region: kz1 + prefix: "stage-" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" +factGiver: + storage: + type: s3 + config: + bucketName: sayauz-pages + region: kz1 + prefix: "" + endpoint: "https://storage.yandexcloud.kz" + usePathStyle: true + accessKeyID: "${S3_ACCESS_KEY_ID}" + secretAccessKey: "${S3_SECRET_ACCESS_KEY}" + factsFileName: "facts-*.txt" +localePath: ./locale/ +availableLanguages: + - name: ru + alt: Русский + flag: https://storage.yandexcloud.kz/sayauz-static/flags/ru.svg + locFile: localization.ru.yaml + - name: en + alt: English + flag: https://storage.yandexcloud.kz/sayauz-static/flags/gb.svg + locFile: localization.en.yaml +auth: + db: + type: sqlite3 + config: + # dsn: 'file:/tmp/auth.db?cache=shared&mode=rwc&_journal_mode=WAL' + dsn: "file:/tmp/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2&_journal_mode=WAL" + salt: "123" +mail: + clientHost: "127.0.0.1:3000" + mailHost: "${MAIL_HOST}" + publicName: "LOCAL.SAYA.UZ" + mailAddress: "${MAIL_ADDRESS}" + username: "${MAIL_USERNAME}" + password: "${MAIL_PASSWORD}" + salt: "${MAIL_SALT}" + trigger: + onNewPost: "* * * * *" +canonicalEndpoint: "http://127.0.0.1:3000" +photoStorage: + full: + baseUrl: https://storage.yandexcloud.kz/sayauz-photos/%s + webp: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp/%s.webp + thumbnail1600p: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp1600/%s.webp + thumbnail1200p: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp1200/%s.webp + thumbnail800p: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp800/%s.webp + thumbnail560p: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp560/%s.webp + thumbnail320p: + baseUrl: https://storage.yandexcloud.kz/sayauz-thumbnails-webp320/%s.webp + homePageGifs: + baseUrl: https://storage.yandexcloud.kz/sayauz-static/home-page-gifs/otter-%s.gif + indexes: ["1", "2", "3"] +staticStorage: + baseUrl: https://storage.yandexcloud.kz/sayauz-static +allowOrigins: + - https://storage.yandexcloud.kz |