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

View file

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