This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathproject.config.toml
61 lines (55 loc) · 1.86 KB
/
project.config.toml
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
# project configuration
# ${} variable will be replaced with environment variables in runtime
[servers]
# only open main port to public
[servers.main]
address = "${MAIN_SERVER_ADDRESS}"
[servers.debug]
address = "${DEBUG_SERVER_ADDRESS}"
[servers.admin]
address = "${ADMIN_SERVER_ADDRESS}"
[log]
level = "${LOG_LEVEL}"
file = "${LOG_FILE}"
use_color = ${LOG_USE_COLOR}
[resources]
# object storage
[[resources.object_storage]]
name = "image-private"
bucket = "${STORAGE_IMAGE_PRIVATE_BUCKET}"
provider = "${STORAGE_IMAGE_PRIVATE_PROVIDER}"
region = "${STORAGE_IMAGE_PRIVATE_REGION}"
endpoint = "${STORAGE_IMAGE_PRIVATE_ENDPOINT}"
[resources.object_storage.s3]
client_id = "${STORAGE_IMAGE_CLIENT_ID}"
client_secret = "${STORAGE_IMAGE_CLIENT_SECRET}"
disable_ssl = ${STORAGE_IMAGE_DISABLE_SSL}
force_path_style = ${STORAGE_IMAGE_FOCE_PATH_STYLE}
# database
[resources.database]
# default options
max_open_conns = 20
max_retry = 5
[[resources.database.connect]]
name = "users"
driver = "postgres"
[resources.database.connect.leader]
dsn = "${DB_USER_LEADER_DSN}"
[resources.database.connect.replica]
dsn = "${DB_USER_REPLICA_DSN}"
[[resources.database.connect]]
name = "notifications"
driver = "postgres"
[resources.database.connect.leader]
dsn = "${DB_NOTIFICATION_LEADER_DSN}"
[resources.database.connect.replica]
dsn = "${DB_NOTIFICATION_REPLICA_DSN}"
# redis
[resources.redis]
max_active_conn = 100
[[resources.redis.connect]]
name = "session"
address = "${REDIS_SESSION_ADDRESS}"
[[resources.redis.connect]]
name = "image"
address = "${REDIS_IMAGE_ADDRESS}"