Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
1532635456
gin-vue-admin
提交
78fbe6d9
G
gin-vue-admin
项目概览
1532635456
/
gin-vue-admin
落后 Fork 源项目 1212 个版本
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
78fbe6d9
编写于
4月 21, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改config set时导致config.yamlkey改变的bug
上级
e794ef05
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
74 addition
and
99 deletion
+74
-99
server/config.yaml
server/config.yaml
+34
-49
server/config/config.go
server/config/config.go
+40
-40
web/src/view/systemTools/system/system.vue
web/src/view/systemTools/system/system.vue
+0
-10
未找到文件。
server/config.yaml
浏览文件 @
78fbe6d9
# Gin-Vue-Admin Global Configuration
# casbin configuration
captcha
:
key-long
:
4
img-width
:
120
img-height
:
40
casbin
:
model-path
:
'
./resource/rbac_model.conf'
# jwt configuration
model-path
:
./resource/rbac_model.conf
jwt
:
signing-key
:
'
qmPlus'
# mysql connect configuration
signing-key
:
qmPlus
log
:
prefix
:
'
[GIN-VUE-ADMIN]'
log-file
:
true
stdout
:
DEBUG
file
:
DEBUG
mysql
:
username
:
root
password
:
'
Aa@6447985'
path
:
'
127.0.0.1:3306'
db-name
:
'
qmplus'
config
:
'
charset=utf8&parseTime=True&loc=Local'
max-idle-conns
:
10
max-open-conns
:
10
log-mode
:
true
#sqlite 配置
sqlite
:
path
:
db/db.db
log-mode
:
true
config
:
'
loc=Asia/Shanghai'
# oss configuration
username
:
root
password
:
Aa@6447985
path
:
127.0.0.1:3306
db-name
:
qmplus
config
:
charset=utf8&parseTime=True&loc=Local
max-idle-conns
:
10
max-open-conns
:
10
log-mode
:
true
qiniu
:
access-key
:
'
25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
secret-key
:
'
pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
# redis configuration
access-key
:
25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ
secret-key
:
pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY
redis
:
addr
:
'
127.0.0.1:6379'
passwprd
:
'
'
db
:
0
# system configuration
addr
:
127.0.0.1:6379
password
:
"
"
db
:
0
sqlite
:
username
:
"
"
password
:
"
"
path
:
db/db.db
config
:
loc=Asia/Shanghai
log-mode
:
true
system
:
use-multipoint
:
false
env
:
'
public'
# Change to "develop" to skip authentication for development mode
addr
:
8888
db-type
:
"
mysql"
# captcha configuration
captcha
:
key-long
:
4
img-width
:
120
img-height
:
40
# logger configuration
log
:
prefix
:
'
[GIN-VUE-ADMIN]'
log-file
:
true
stdout
:
'
DEBUG'
file
:
'
DEBUG'
use-multipoint
:
false
env
:
public
addr
:
8888
db-type
:
mysql
server/config/config.go
浏览文件 @
78fbe6d9
package
config
type
Server
struct
{
Mysql
Mysql
`mapstructure:"mysql" json:"mysql"`
Sqlite
Sqlite
`mapstructure:"sqlite" json:"sqlite"`
Qiniu
Qiniu
`mapstructure:"qiniu" json:"qiniu"`
Casbin
Casbin
`mapstructure:"casbin" json:"casbin"`
Redis
Redis
`mapstructure:"redis" json:"redis"`
System
System
`mapstructure:"system" json:"system"`
JWT
JWT
`mapstructure:"jwt" json:"jwt"`
Captcha
Captcha
`mapstructure:"captcha" json:"captcha"`
Log
Log
`mapstructure:"log" json:"log"`
Mysql
Mysql
`mapstructure:"mysql" json:"mysql"
yaml:"mysql"
`
Sqlite
Sqlite
`mapstructure:"sqlite" json:"sqlite"
yaml:"sqlite"
`
Qiniu
Qiniu
`mapstructure:"qiniu" json:"qiniu"
yaml:"qiniu"
`
Casbin
Casbin
`mapstructure:"casbin" json:"casbin"
yaml:"casbin"
`
Redis
Redis
`mapstructure:"redis" json:"redis"
yaml:"redis"
`
System
System
`mapstructure:"system" json:"system"
yaml:"system"
`
JWT
JWT
`mapstructure:"jwt" json:"jwt"
yaml:"jwt"
`
Captcha
Captcha
`mapstructure:"captcha" json:"captcha"
yaml:"captcha"
`
Log
Log
`mapstructure:"log" json:"log"
yaml:"log"
`
}
type
System
struct
{
UseMultipoint
bool
`mapstructure:"use-multipoint" json:"useMultipoint"`
Env
string
`mapstructure:"env" json:"env"`
Addr
int
`mapstructure:"addr" json:"addr"`
DbType
string
`mapstructure:"db-type" json:"dbType"`
UseMultipoint
bool
`mapstructure:"use-multipoint" json:"useMultipoint"
yaml:"use-multipoint"
`
Env
string
`mapstructure:"env" json:"env"
yaml:"env"
`
Addr
int
`mapstructure:"addr" json:"addr"
yaml:"addr"
`
DbType
string
`mapstructure:"db-type" json:"dbType"
yaml:"db-type"
`
}
type
JWT
struct
{
SigningKey
string
`mapstructure:"signing-key" json:"signingKey"`
SigningKey
string
`mapstructure:"signing-key" json:"signingKey"
yaml:"signing-key"
`
}
type
Casbin
struct
{
ModelPath
string
`mapstructure:"model-path" json:"modelPath"`
ModelPath
string
`mapstructure:"model-path" json:"modelPath"
yaml:"model-path"
`
}
type
Mysql
struct
{
Username
string
`mapstructure:"username" json:"username"`
Password
string
`mapstructure:"password" json:"password"`
Path
string
`mapstructure:"path" json:"path"`
Dbname
string
`mapstructure:"db-name" json:"dbname"`
Config
string
`mapstructure:"config" json:"config"`
MaxIdleConns
int
`mapstructure:"max-idle-conns" json:"maxIdleConns"`
MaxOpenConns
int
`mapstructure:"max-open-conns" json:"maxOpenConns"`
LogMode
bool
`mapstructure:"log-mode" json:"logMode"`
Username
string
`mapstructure:"username" json:"username"
yaml:"username"
`
Password
string
`mapstructure:"password" json:"password"
yaml:"password"
`
Path
string
`mapstructure:"path" json:"path"
yaml:"path"
`
Dbname
string
`mapstructure:"db-name" json:"dbname"
yaml:"db-name"
`
Config
string
`mapstructure:"config" json:"config"
yaml:"config"
`
MaxIdleConns
int
`mapstructure:"max-idle-conns" json:"maxIdleConns"
yaml:"max-idle-conns"
`
MaxOpenConns
int
`mapstructure:"max-open-conns" json:"maxOpenConns"
yaml:"max-open-conns"
`
LogMode
bool
`mapstructure:"log-mode" json:"logMode"
yaml:"log-mode"
`
}
type
Redis
struct
{
Addr
string
`mapstructure:"addr" json:"addr"`
Password
string
`mapstructure:"password" json:"password"`
DB
int
`mapstructure:"db" json:"db"`
Addr
string
`mapstructure:"addr" json:"addr"
yaml:"addr"
`
Password
string
`mapstructure:"password" json:"password"
yaml:"password"
`
DB
int
`mapstructure:"db" json:"db"
yaml:"db"
`
}
type
Qiniu
struct
{
AccessKey
string
`mapstructure:"access-key" json:"accessKey"`
SecretKey
string
`mapstructure:"secret-key" json:"secretKey"`
AccessKey
string
`mapstructure:"access-key" json:"accessKey"
yaml:"access-key"
`
SecretKey
string
`mapstructure:"secret-key" json:"secretKey"
yaml:"secret-key"
`
}
type
Captcha
struct
{
KeyLong
int
`mapstructure:"key-long" json:"keyLong"`
ImgWidth
int
`mapstructure:"img-width" json:"imgWidth"`
ImgHeight
int
`mapstructure:"img-height" json:"imgHeight"`
KeyLong
int
`mapstructure:"key-long" json:"keyLong"
yaml:"key-long"
`
ImgWidth
int
`mapstructure:"img-width" json:"imgWidth"
yaml:"img-width"
`
ImgHeight
int
`mapstructure:"img-height" json:"imgHeight"
yaml:"img-height"
`
}
type
Log
struct
{
Prefix
string
`mapstructure:"prefix" json:"prefix"`
LogFile
bool
`mapstructure:"log-file" json:"logFile"`
Stdout
string
`mapstructure:"stdout" json:"stdout"`
File
string
`mapstructure:"file" json:"file"`
Prefix
string
`mapstructure:"prefix" json:"prefix"
yaml:"prefix"
`
LogFile
bool
`mapstructure:"log-file" json:"logFile"
yaml:"log-file"
`
Stdout
string
`mapstructure:"stdout" json:"stdout"
yaml:"stdout"
`
File
string
`mapstructure:"file" json:"file"
yaml:"file"
`
}
type
Sqlite
struct
{
Username
string
`mapstructure:"username" json:"username"`
Password
string
`mapstructure:"password" json:"password"`
Path
string
`mapstructure:"path" json:"path"`
Config
string
`mapstructure:"config" json:"config"`
LogMode
bool
`mapstructure:"log-mode" json:"logMode"`
Username
string
`mapstructure:"username" json:"username"
yaml:"username"
`
Password
string
`mapstructure:"password" json:"password"
yaml:"password"
`
Path
string
`mapstructure:"path" json:"path"
yaml:"path"
`
Config
string
`mapstructure:"config" json:"config"
yaml:"config"
`
LogMode
bool
`mapstructure:"log-mode" json:"logMode"
yaml:"log-mode"
`
}
web/src/view/systemTools/system/system.vue
浏览文件 @
78fbe6d9
...
...
@@ -78,11 +78,6 @@
<el-form-item
label=
"secretKey"
>
<el-input
v-model=
"config.qiniu.secretKey"
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"update"
type=
"primary"
>
立即更新
</el-button>
<el-button
@
click=
"reload"
type=
"primary"
>
重启服务(开发中)
</el-button>
</el-form-item>
<h2>
验证码配置
</h2>
<el-form-item
label=
"keyLong"
>
<el-input
v-model.number=
"config.captcha.keyLong"
></el-input>
...
...
@@ -93,11 +88,6 @@
<el-form-item
label=
"imgHeight"
>
<el-input
v-model.number=
"config.captcha.imgHeight"
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"update"
type=
"primary"
>
立即更新
</el-button>
<el-button
@
click=
"reload"
type=
"primary"
>
重启服务(开发中)
</el-button>
</el-form-item>
<h2>
日志配置
</h2>
<el-form-item
label=
"prefix"
>
<el-input
v-model.number=
"config.log.prefix"
></el-input>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录