Files
mayfly-go/server/config.yml

45 lines
861 B
YAML
Raw Normal View History

2021-04-16 15:10:07 +08:00
app:
name: mayfly-go
version: 1.2.3
2021-04-21 10:22:09 +08:00
2021-04-16 15:10:07 +08:00
server:
# debug release test
model: release
port: 8888
cors: true
tls:
enable: false
key-file: ./default.key
cert-file: ./default.pem
2021-04-16 15:10:07 +08:00
# 静态资源
static:
- relative-path: /assets
root: ./static/assets
2021-04-16 15:10:07 +08:00
# 静态文件
static-file:
- relative-path: /
filepath: ./static/index.html
- relative-path: /favicon.ico
filepath: ./static/favicon.ico
2021-11-22 16:40:20 +08:00
- relative-path: /config.js
filepath: ./static/config.js
2021-04-16 15:10:07 +08:00
jwt:
key: mykey
# 过期时间单位分钟
expire-time: 1440
2021-04-16 15:10:07 +08:00
mysql:
host: localhost:3306
username: root
password: 111049
2022-01-13 17:06:04 +08:00
db-name: mayfly-go
config: charset=utf8&loc=Local&parseTime=true
2021-11-22 16:40:20 +08:00
max-idle-conns: 5
log:
# 日志等级, trace, debug, info, warn, error, fatal
level: info
# file:
# path: ./
# name: mayfly.log