mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-08 22:46:51 +08:00
feat: app.yaml 增加 username 和 password 参数 (#960)
This commit is contained in:
parent
fcd764d521
commit
2d321b4a79
2 changed files with 5 additions and 3 deletions
|
@ -75,13 +75,13 @@ func Init() {
|
||||||
version = serverConfig.System.Version
|
version = serverConfig.System.Version
|
||||||
}
|
}
|
||||||
if serverConfig.System.Username != "" {
|
if serverConfig.System.Username != "" {
|
||||||
version = serverConfig.System.Username
|
username = serverConfig.System.Username
|
||||||
}
|
}
|
||||||
if serverConfig.System.Password != "" {
|
if serverConfig.System.Password != "" {
|
||||||
version = serverConfig.System.Password
|
password = serverConfig.System.Password
|
||||||
}
|
}
|
||||||
if serverConfig.System.Entrance != "" {
|
if serverConfig.System.Entrance != "" {
|
||||||
version = serverConfig.System.Entrance
|
entrance = serverConfig.System.Entrance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ system:
|
||||||
repo_url: https://resource.fit2cloud.com/1panel/package
|
repo_url: https://resource.fit2cloud.com/1panel/package
|
||||||
is_demo: false
|
is_demo: false
|
||||||
port: 9999
|
port: 9999
|
||||||
|
username: admin
|
||||||
|
password: admin123
|
||||||
|
|
||||||
log:
|
log:
|
||||||
level: debug
|
level: debug
|
||||||
|
|
Loading…
Add table
Reference in a new issue