feat: app.yaml 增加 username 和 password 参数 (#960)

This commit is contained in:
zhengkunwang223 2023-05-09 17:31:44 +08:00 committed by GitHub
parent fcd764d521
commit 2d321b4a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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