Files
go-admin/config/settings.yml
T
2020-07-24 18:10:25 +08:00

46 lines
1.2 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.
settings:
application:
mode: dev # dev开发环境 test测试环境 prod线上环境
host: 0.0.0.0
name: testApp
port: 8000
readtimeout: 1
writertimeout: 2
domain: localhost:8000
ishttps: false
logger: #請求日志
path: temp/logs/access
stdout: true
level: all
enabled: true
ssl:
key: keystring
pem: temp/pem.pem
logger: # 业务日志
path: temp/logs/bus
stdout: true
level: all
enabled: true
jwt:
secret: go-admin
timeout: 3600
database:
driver: mysql # mysqlsqlite3 postgres
dbname: dbname
source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local
# source: sqlite3.db
# source: host=myhost port=myport user=gorm dbname=gorm password=mypassword
logger: #数据库日志
path: temp/logs/db
stdout: true
level: all
enabled: true
gen:
dbname: dbname
frontpath: /go-admin-ui/src # 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径
logger: #数据库日志
path: temp/logs/gen
stdout: true
level: all
enabled: true