mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
69 lines
1.3 KiB
YAML
69 lines
1.3 KiB
YAML
app:
|
||
name: pandax
|
||
version: 1.0.0
|
||
|
||
server:
|
||
# debug release test
|
||
model: release
|
||
port: 7788
|
||
cors: true
|
||
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
|
||
- relative-path: /form-generator
|
||
root: ./resource/form
|
||
# 静态文件
|
||
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: pandax
|
||
password: pandax
|
||
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 |