Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
企猫商务
frp
提交
0d84da91
F
frp
项目概览
企猫商务
/
frp
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
frp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
0d84da91
编写于
5月 10, 2021
作者:
F
fatedier
提交者:
GitHub
5月 10, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change default value of dashboard_user and dashboard_pwd to empty string (#2383)
上级
2408f1df
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
README.md
README.md
+3
-3
pkg/config/client.go
pkg/config/client.go
+2
-2
pkg/config/server.go
pkg/config/server.go
+5
-5
pkg/config/server_test.go
pkg/config/server_test.go
+2
-2
未找到文件。
README.md
浏览文件 @
0d84da91
...
@@ -421,12 +421,12 @@ Configure a port for dashboard to enable this feature:
...
@@ -421,12 +421,12 @@ Configure a port for dashboard to enable this feature:
```
ini
```
ini
[common]
[common]
dashboard_port
=
7500
dashboard_port
=
7500
# dashboard's username and password are both optional
,if not set, default is admin.
# dashboard's username and password are both optional
dashboard_user
=
admin
dashboard_user
=
admin
dashboard_pwd
=
admin
dashboard_pwd
=
admin
```
```
Then visit
`http://[server_addr]:7500`
to see the dashboard, with username and password both being
`admin`
by default
.
Then visit
`http://[server_addr]:7500`
to see the dashboard, with username and password both being
`admin`
.
![
dashboard
](
/doc/pic/dashboard.png
)
![
dashboard
](
/doc/pic/dashboard.png
)
...
@@ -444,7 +444,7 @@ admin_user = admin
...
@@ -444,7 +444,7 @@ admin_user = admin
admin_pwd
=
admin
admin_pwd
=
admin
```
```
Then visit
`http://127.0.0.1:7400`
to see admin UI, with username and password both being
`admin`
by default
.
Then visit
`http://127.0.0.1:7400`
to see admin UI, with username and password both being
`admin`
.
### Monitor
### Monitor
...
...
pkg/config/client.go
浏览文件 @
0d84da91
...
@@ -68,10 +68,10 @@ type ClientCommonConf struct {
...
@@ -68,10 +68,10 @@ type ClientCommonConf struct {
// is 0.
// is 0.
AdminPort
int
`ini:"admin_port" json:"admin_port"`
AdminPort
int
`ini:"admin_port" json:"admin_port"`
// AdminUser specifies the username that the admin server will use for
// AdminUser specifies the username that the admin server will use for
// login.
By default, this value is "admin".
// login.
AdminUser
string
`ini:"admin_user" json:"admin_user"`
AdminUser
string
`ini:"admin_user" json:"admin_user"`
// AdminPwd specifies the password that the admin server will use for
// AdminPwd specifies the password that the admin server will use for
// login.
By default, this value is "admin".
// login.
AdminPwd
string
`ini:"admin_pwd" json:"admin_pwd"`
AdminPwd
string
`ini:"admin_pwd" json:"admin_pwd"`
// AssetsDir specifies the local directory that the admin server will load
// AssetsDir specifies the local directory that the admin server will load
// resources from. If this value is "", assets will be loaded from the
// resources from. If this value is "", assets will be loaded from the
...
...
pkg/config/server.go
浏览文件 @
0d84da91
...
@@ -72,10 +72,10 @@ type ServerCommonConf struct {
...
@@ -72,10 +72,10 @@ type ServerCommonConf struct {
// 0.
// 0.
DashboardPort
int
`ini:"dashboard_port" json:"dashboard_port"`
DashboardPort
int
`ini:"dashboard_port" json:"dashboard_port"`
// DashboardUser specifies the username that the dashboard will use for
// DashboardUser specifies the username that the dashboard will use for
// login.
By default, this value is "admin".
// login.
DashboardUser
string
`ini:"dashboard_user" json:"dashboard_user"`
DashboardUser
string
`ini:"dashboard_user" json:"dashboard_user"`
// Dashboard
User
specifies the password that the dashboard will use for
// Dashboard
Pwd
specifies the password that the dashboard will use for
// login.
By default, this value is "admin".
// login.
DashboardPwd
string
`ini:"dashboard_pwd" json:"dashboard_pwd"`
DashboardPwd
string
`ini:"dashboard_pwd" json:"dashboard_pwd"`
// EnablePrometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port}
// EnablePrometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port}
// in /metrics api.
// in /metrics api.
...
@@ -181,8 +181,8 @@ func GetDefaultServerConf() ServerCommonConf {
...
@@ -181,8 +181,8 @@ func GetDefaultServerConf() ServerCommonConf {
VhostHTTPTimeout
:
60
,
VhostHTTPTimeout
:
60
,
DashboardAddr
:
"0.0.0.0"
,
DashboardAddr
:
"0.0.0.0"
,
DashboardPort
:
0
,
DashboardPort
:
0
,
DashboardUser
:
"
admin
"
,
DashboardUser
:
""
,
DashboardPwd
:
"
admin
"
,
DashboardPwd
:
""
,
EnablePrometheus
:
false
,
EnablePrometheus
:
false
,
AssetsDir
:
""
,
AssetsDir
:
""
,
LogFile
:
"console"
,
LogFile
:
"console"
,
...
...
pkg/config/server_test.go
浏览文件 @
0d84da91
...
@@ -180,8 +180,8 @@ func Test_LoadServerCommonConf(t *testing.T) {
...
@@ -180,8 +180,8 @@ func Test_LoadServerCommonConf(t *testing.T) {
ProxyBindAddr
:
"0.0.0.9"
,
ProxyBindAddr
:
"0.0.0.9"
,
VhostHTTPTimeout
:
60
,
VhostHTTPTimeout
:
60
,
DashboardAddr
:
"0.0.0.0"
,
DashboardAddr
:
"0.0.0.0"
,
DashboardUser
:
"
admin
"
,
DashboardUser
:
""
,
DashboardPwd
:
"
admin
"
,
DashboardPwd
:
""
,
EnablePrometheus
:
false
,
EnablePrometheus
:
false
,
LogFile
:
"console"
,
LogFile
:
"console"
,
LogWay
:
"console"
,
LogWay
:
"console"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录