Skip to content

Commit 1b178c3

Browse files
committed
Fix form validation and gh-ost usage
1 parent 65be902 commit 1b178c3

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

backend/config.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# 应用配置
2+
app:
3+
listen_address: "localhost:8083" # 应用监听地址
4+
environment: "dev" # 环境设置,可选值为dev/prod,生产写prod
5+
secret_key: "A9$k!pZ3@rT7&xQ1#Lf8^Vm2*Ws6%Hd0" # 必须32位长度,用于登录认证、密码加密,请更换
6+
7+
crontab:
8+
sync_db_metas: "*/5 * * * *" # 每5分钟同步一次远程数据库库表元数据到本地数据库
9+
10+
# 日志配置
11+
log:
12+
level: "info" # 日志级别
13+
root_dir: "./logs" # 日志根目录
14+
15+
# MySQL数据库配置,用于存储goinsight应用数据
16+
database:
17+
driver: "mysql" # 数据库驱动
18+
host: "127.0.0.1" # 数据库主机
19+
port: 3306 # 数据库端口
20+
database: "goinsight" # 数据库名称
21+
username: "goinsight_rw" # 数据库用户名
22+
password: "1234.Com!" # 数据库密码
23+
charset: "utf8mb4" # 数据库字符集
24+
max_idle_conns: 64 # 最大空闲连接数
25+
max_open_conns: 64 # 最大打开连接数
26+
conn_max_life_time: 3600 # 连接的最大存活时间
27+
conn_max_idle_time: 3600 # 连接的最大空闲时间
28+
29+
# Redis配置
30+
redis:
31+
host: "127.0.0.1" # Redis主机
32+
port: 6379 # Redis端口
33+
password: "1234.com" # Redis密码
34+
db: 0
35+
36+
# 数据查询配置
37+
das:
38+
max_execution_time: 600000 # 查询语句最大查询执行时间
39+
default_return_rows: 100 # 查询默认返回行数
40+
max_return_rows: 100 # 查询默认最大返回行数
41+
42+
# GitHub's Online Schema-migration Tool for MySQL
43+
# https://github.com/github/gh-ost
44+
ghost:
45+
path: "/usr/local/bin/gh-ost" # Gh-ost工具路径
46+
args: # Gh-ost工具参数列表
47+
[
48+
"--allow-on-master",
49+
"--assume-rbr",
50+
"--initially-drop-ghost-table",
51+
"--initially-drop-old-table",
52+
"-initially-drop-socket-file",
53+
"-exact-rowcount",
54+
"--approve-renamed-columns",
55+
"--concurrent-rowcount=false",
56+
"--chunk-size=800",
57+
]
58+
59+
# 消息通知配置,用于工单消息推送
60+
notify:
61+
notice_url: "http://localhost:8083" # 消息通知和导出工单域名前缀
62+
wechat:
63+
enable: true
64+
webhook: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=123.com"
65+
dingtalk:
66+
enable: false
67+
webhook: "https://oapi.dingtalk.com/robot/send?access_token=1234"
68+
keywords: "goinsight"
69+
mail:
70+
enable: false
71+
username: "xxx@163.com"
72+
password: "1234.com"
73+
host: "smtp.163.com"
74+
port: 465

0 commit comments

Comments
 (0)