summaryrefslogtreecommitdiff
path: root/config/config.prod.yaml
blob: e5785f8c191c730437acf0606183ce4ac98b2d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
logLevel: info
endpoint:
  type: unix
  config:
    path: "/etc/sayauz/prod.socket"
    chmod: '0666'
blogPages:
  storage:
    type: s3
    config:
      bucketName: sayauz-pages
      region: kz1
      prefix: "prod-"
      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:/data/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2&_journal_mode=WAL"
  salt: "${AUTH_SALT}"
mail:
  clientHost: "${FQDN}"
  mailHost: "${MAIL_HOST}"
  publicName: "SAYA.UZ"
  mailAddress: "${MAIL_ADDRESS}"
  username: "${MAIL_USERNAME}"
  password: "${MAIL_PASSWORD}"
  salt: "${MAIL_SALT}"
  trigger:
    onNewPost: "0/5 * * * *"
canonicalEndpoint: "https://${FQDN}"
meta:
  googleSiteVerification: "${GOOGLE_SITE_VERIFICATION}"
  yandexVerification: "${YANDEX_VERIFICATION}"
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