-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.yaml
72 lines (63 loc) · 1.21 KB
/
example.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
service:
address: "localhost:8080"
cors:
allowOrigins:
- "*"
allowMethods:
- GET
- DELETE
- PUT
- POST
allowHeaders:
allowCredentials: true
exposeHeaders:
maxAge: 3600 # seconds
allowWildcard: false
allowBrowserExtensions: false
allowWebSockets: true
allowFiles: false # warning, false is default
log:
path: ./logs/app.log
maxSize: 10
maxBackups: 3
maxAge: 30
console: true
database:
sqlite:
path: tmp/sqlite.db
# mysql:
# username: root
# password: password
# address: localhost
# port: 3306
# maxIdleConns: 10
# maxOpenConns: 100
# maxLifetime: 180
redis:
address: localhost:6379
password: ""
db: 0
key:
jwtkey: jwtkey
sessionStateKey: sessionStateKey
oauth:
github:
id: "client id"
secret: "client secret"
redirect: "redirect url"
email:
mock: # mock option is priority
type: "default"
# ses:
# region: "region"
# domain: "base domain"
# id: "id" # optional
# key: "key" # optional
storage:
local:
baseDirectory: "./baseDirectory"
# s3:
# region: "region"
# bucketName: "name"
# id: "id" # optional
# key: "key" # optional