-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.release.yml
50 lines (49 loc) · 1.16 KB
/
application.release.yml
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
server:
# 服务端口
port: 8080
gins:
gorm:
db-type: mysql
# 数据库
datasource:
path: gins-mysql
port: 3306
config: charset=utf8mb4&parseTime=True&loc=Local
db-name: gins
username: root
password: 123456
max-idle-conns: 10
max-open-conns: 100
engine:
log-mode:
log-zap: false
db-list:
- disable: true # 是否禁用
type: "mysql" # 数据库的类型,目前支持mysql、pgsql、mssql、oracle
alias-name: slave # 数据库的名称,注意: alias-name 需要在db-list中唯一
path: gins-mysql
port: 3306
config: charset=utf8mb4&parseTime=True&loc=Local
db-name: gins
username: root
password: 123456
max-idle-conns: 10
max-open-conns: 100
log-mode:
log-zap: false
# redis
redis:
addr: gins-redis:6379
db: 1
password:
# 日志配置
zap:
level: info
format: console
prefix: '[github.com/twelvet-s/gins]'
director: logs
show-line: true
encode-level: LowercaseColorLevelEncoder
stacktrace-key: stacktrace
max-age: 0
log-in-console: true