forked from feixuei/chatgpt-mirror-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.prod.yaml
50 lines (45 loc) · 1.16 KB
/
config.prod.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
server:
# address: ":8001"
serverRoot: "resource/public"
clientMaxBodySize: 104857600 # 100MB in bytes 100*1024*1024
# logger:
# path: "./data/logs/"
# file: "{Y-m-d}.log"
# level : "info"
# stdout: true
database:
default: # 数据源名称,当不指定数据源时 default 为默认数据源
type: "mysql" # 数据库类型
host: "mysql" # 数据库地址
port: "3306" # 数据库端口
user: "root" # 数据库用户名
pass: "123456" # 数据库密码
name: "cool" # 数据库名称
charset: "utf8mb4" # 数据库编码
timezone: "Asia/Shanghai" # 数据库时区
# debug: true # 是否开启调试模式,开启后会打印SQL日志
createdAt: "createTime" # 创建时间字段
updatedAt: "updateTime" # 更新时间字段
redis:
cool:
address: "redis:6379"
db: 0
cool:
autoMigrate: true
eps: false
file:
mode: "local"
domain: "http://127.0.0.1:8001"
modules:
base:
jwt:
sso: false
secret: "cool-admin-go"
token:
expire: 7200 # 2*3600
refreshExpire: 1296000 # 24*3600*15
middleware:
authority:
enable: 1
log:
enable: 1