generated from xylonx/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.default.yaml
58 lines (56 loc) · 1.74 KB
/
config.default.yaml
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
# application - configure the server
application:
# grpc bind host
grpc_host: 0.0.0.0
# grpc bind port
grpc_port: 30000
# http bind host
http_host: 0.0.0.0
# http bind port
http_port: 5000
# http server read timeout. if read(body) action exceeds, it will close the connection
# default value is 60
http_read_timeout_seconds: 60
# http server read timeout. if write(body) action exceeds, it will close the connection
# default value is 60
http_write_timeout_seconds: 60
# admin token - used to generated auth Bearer token
admin_token:
# http allow origins - using for cors
http_allow_origins:
- https://icc.xylonx.com
# database - configure database connection
database:
# using postgres database
# visit gorm connecting to database(https://gorm.io/docs/connecting_to_the_database.html)
# for more information
postgres:
# postgres database dsn
dsn: host= user= password= dbname=icccore port=5432 sslmode=disable TimeZone=Asia/Shanghai
# database max open connection
# default value is 10
max_open_conn: 10
# database max idle connection keeping
# default value is 100
max_idle_conn: 100
# database max connection keeping seconds
# default value is 600
max_life_seconds: 600
# storage - configure image storage
storage:
# cdn host - using for generated cdn image link
cdn_host:
# sign upload seconds - duration for signing upload
sign_upload_seconds: 600
# using s3 param
s3:
# s3 endpoint
endpoint:
# s3 access id
access_id:
# s3 access key
access_secret:
# s3 bucket
bucket:
# s3 region
region: