-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig.toml
executable file
·68 lines (62 loc) · 1.42 KB
/
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
62
63
64
65
66
67
68
# HTTP Server status
[status]
#后台管理服务开关
admin = true
#Api服务开关
api = true
#后台管理服务配置
[admin]
#后台服务绑定地址和端口
address = ":8088"
#后台服务静态资源目录
serverRoot = "public"
#Swagger文件地址
swagger = "http://localhost:8088/static/swagger/swagger.json"
#API管理服务配置
[api]
#Api服务绑定地址和端口
address = ":8086"
#Api服务静态资源目录
serverRoot = "public"
#jwt配置
[api.jwt]
#过期时间
timeout = 3600
#刷新时间
refresh = 1800
#安全密钥
encryptKey = "yjgoyjgoyjgoyjgo"
# 日志配置
[logger]
#日志保存路径
path = "/tmp/log/yj-app"
#日志级别
level = 0
#标准输出流
stdout = true
# 定时任务
[task]
#并发任务数
workPoolSize = 10
# 数据库配置
[database]
#主数据库
master = "root:password@tcp(127.0.0.1:3306)/yjgov2?charset=utf8"
#从数据库 如果为空则表示只使用主数据
slave = ""
#sql调试开关
debug = true
#sql日志目录
log = "/tmp/log/yj-app/sql"
# 代码生成配置
[gen]
#生成作者
author = "yunjie"
#生成的模块名称
moduleName = "module"
#生成的包名称
packageName = "yj-app"
#是否去掉表前缀
autoRemovePre = true
#表前缀
tablePrefix = "t_,sys_"