diff --git a/backend/init/viper/viper.go b/backend/init/viper/viper.go index 660c1070b..3ad127f05 100644 --- a/backend/init/viper/viper.go +++ b/backend/init/viper/viper.go @@ -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 } } diff --git a/cmd/server/conf/app.yaml b/cmd/server/conf/app.yaml index b3c96dc79..20865f3ae 100644 --- a/cmd/server/conf/app.yaml +++ b/cmd/server/conf/app.yaml @@ -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