This commit is contained in:
❀ » Cato Sweeney. ❀ » Console@the.bb
2025-12-03 12:53:19 +08:00
commit e9e409d958
370 changed files with 104606 additions and 0 deletions

53
config.yml Normal file
View 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