Files
PandaX/config.yml
2022-07-23 10:32:31 +08:00

72 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
app:
name: pandax
version: 1.0.0
server:
# debug release test
model: release
port: 8080
cors: true
# 接口限流
rate:
enable: true
rate-num: 100
db-type: mysql
# 是否开启数据库表初始化
isInitTable: false
excel-dir: ./resource/excel/
tls:
enable: false
key-file: ./resource/default.key
cert-file: ./resource/default.pem
# 静态资源
static:
- relative-path: /assets
root: ./static/assets
# 静态文件
static-file:
- relative-path: /
filepath: ./static/index.html
- relative-path: /favicon.ico
filepath: ./static/favicon.ico
jwt:
key: mykey
# 过期时间单位秒 7天
expire-time: 604800
redis:
host: 127.0.0.1
port: 6379
mysql:
host: 127.0.0.1:3306
username: root
password: 123456
db-name: pandax
config: charset=utf8&loc=Local&parseTime=true
postgresql:
username: postgres
password: 123456
host: 127.0.0.1
port: 5432
db-name: pandax
max-idle-conns: 10
max-open-conns: 10
casbin:
model-path: './resource/rbac_model.conf'
gen:
# 代码生成读取的数据库名称
dbname: pandax
# 代码生成是使用前端代码存放位置需要指定到src文件夹相对路径
frontpath: ../PandaUi/src
log:
# 日志等级, trace, debug, info, warn, error, fatal
level: info
# file:
# path: ./
# name: panda_log.log