|
@@ -72,10 +72,10 @@ type ServerCommonConf struct {
|
|
|
// 0.
|
|
|
DashboardPort int `ini:"dashboard_port" json:"dashboard_port"`
|
|
|
// 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 specifies the password that the dashboard will use for
|
|
|
- // login. By default, this value is "admin".
|
|
|
+ // DashboardPwd specifies the password that the dashboard will use for
|
|
|
+ // login.
|
|
|
DashboardPwd string `ini:"dashboard_pwd" json:"dashboard_pwd"`
|
|
|
// EnablePrometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port}
|
|
|
// in /metrics api.
|
|
@@ -181,8 +181,8 @@ func GetDefaultServerConf() ServerCommonConf {
|
|
|
VhostHTTPTimeout: 60,
|
|
|
DashboardAddr: "0.0.0.0",
|
|
|
DashboardPort: 0,
|
|
|
- DashboardUser: "admin",
|
|
|
- DashboardPwd: "admin",
|
|
|
+ DashboardUser: "",
|
|
|
+ DashboardPwd: "",
|
|
|
EnablePrometheus: false,
|
|
|
AssetsDir: "",
|
|
|
LogFile: "console",
|