*
This commit is contained in:
53
config.yml
Normal file
53
config.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
app:
|
||||
name: xMagic
|
||||
version: 1.0.0
|
||||
|
||||
server:
|
||||
port: 7788
|
||||
cors: true
|
||||
# 接口限流
|
||||
rate:
|
||||
enable: true
|
||||
rate-num: 100
|
||||
db-type: mysql
|
||||
excel-dir: ./resource/excel/
|
||||
tls:
|
||||
enable: true
|
||||
key-file: /www/server/panel/vhost/ssl/r.l-l.cn/privkey.pem
|
||||
cert-file: /www/server/panel/vhost/ssl/r.l-l.cn/fullchain.pem
|
||||
jwt:
|
||||
key: xMagic
|
||||
# 过期时间单位秒 7天
|
||||
expire-time: 604800
|
||||
|
||||
mysql:
|
||||
host: sh-cynosdbmysql-grp-l1s8n3g4.sql.tencentcdb.com:28799
|
||||
username: root
|
||||
password: "LMxeon5x"
|
||||
db-name: tita
|
||||
config: charset=utf8&loc=Local&parseTime=true
|
||||
|
||||
postgresql:
|
||||
username: postgres
|
||||
password: 123456
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
db-name: pandax_iot
|
||||
max-idle-conns: 10
|
||||
max-open-conns: 10
|
||||
|
||||
casbin:
|
||||
model-path: "./resource/rbac_model.conf"
|
||||
|
||||
gen:
|
||||
# 代码生成读取的数据库名称
|
||||
dbname: x_magic
|
||||
# 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径
|
||||
frontpath: ../PandaUi/src
|
||||
|
||||
log:
|
||||
# 日志等级, trace, debug, info, warn, error, fatal
|
||||
level: info
|
||||
# file:
|
||||
# path: ./
|
||||
# name: panda_log.log
|
||||
Reference in New Issue
Block a user