新增系统设置接口

This commit is contained in:
wxb committed 2020-08-07 10:51:01 +08:00
commit dca1919c69
7 files changed
+119 -23

No files matched your search

+45 -19
View File
@@ -1,30 +1,56 @@
settings:
application:
enabledp: true
host: 0.0.0.0
# dev开发环境 test测试环境 prod线上环境
mode: dev
# 服务器ip,默认使用 0.0.0.0
host: 0.0.0.0
# 服务名称
name: testApp
port: 8000
# 端口号
port: 8000 # 服务端口号
readtimeout: 1
writertimeout: 2
database:
driver: mysql
source: root:123456@tcp(127.0.0.1:3306)/goplus?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
gen:
dbname: goplus
frontpath: ../web/src
jwt:
secret: goplus
timeout: 3600
logger:
enabledbus: false
enableddb: false
enabledreq: false
level: all
path: temp/logs
stdout: true
# 数据权限功能开关
enabledp: false
ssl:
# https对应的域名
domain: localhost:8000
# https开关
enable: false
# ssl 证书key
key: keystring
# ssl 证书路径
pem: temp/pem.pem
logger:
# 日志存放路径
path: temp/logs
# 控制台日志
stdout: true
# 日志等级
level: all
# 业务日志开关
enabledbus: false
# 请求日志开关
enabledreq: false
# 数据库日志开关 dev模式,将自动开启
enableddb: false
# 自动任务日志开关 dev模式,将自动开启
enabledjob: false
jwt:
# token 密钥,生产环境时及的修改
secret: go-admin
# token 过期时间 单位:秒
timeout: 3600
database:
# 数据库类型 mysql,sqlite3, postgres
driver: mysql
# 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms
source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# source: sqlite3.db
# source: host=myhost port=myport user=gorm dbname=gorm password=mypassword
gen:
# 代码生成读取的数据库名称
dbname: dbname
# 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径
frontpath: ../go-admin-ui/src
>>>>>>> c396f318ef0649f7231b8ee7b2a70d26159c19c2