mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 02:59:16 +08:00
feat: app.yaml 增加 username 和 password 参数 (#960)
This commit is contained in:
parent
fcd764d521
commit
2d321b4a79
@ -75,13 +75,13 @@ func Init() {
|
||||
version = serverConfig.System.Version
|
||||
}
|
||||
if serverConfig.System.Username != "" {
|
||||
version = serverConfig.System.Username
|
||||
username = serverConfig.System.Username
|
||||
}
|
||||
if serverConfig.System.Password != "" {
|
||||
version = serverConfig.System.Password
|
||||
password = serverConfig.System.Password
|
||||
}
|
||||
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
|
||||
is_demo: false
|
||||
port: 9999
|
||||
username: admin
|
||||
password: admin123
|
||||
|
||||
log:
|
||||
level: debug
|
||||
|
Loading…
Reference in New Issue
Block a user