Add default demo:demo credentials
This commit is contained in:
parent
83da3cc392
commit
848b03a262
4
main.go
4
main.go
|
@ -45,6 +45,10 @@ func loadConfiguration() {
|
||||||
|
|
||||||
// Define configuration default values
|
// Define configuration default values
|
||||||
viper.SetDefault("Auth.Backend", "Basic")
|
viper.SetDefault("Auth.Backend", "Basic")
|
||||||
|
viper.SetDefault("Auth.Basic.Credentials", map[string]string{
|
||||||
|
// Demo user with password "demo"
|
||||||
|
"demo": "$2b$15$LRnG3eIHFlYIguTxZOLH7eHwbQC/vqjnLq6nDFiHSUDKIU.f5/1H6",
|
||||||
|
})
|
||||||
viper.SetDefault("Auth.LDAP.URI", "ldap://127.0.0.1:389")
|
viper.SetDefault("Auth.LDAP.URI", "ldap://127.0.0.1:389")
|
||||||
viper.SetDefault("Auth.LDAP.UserDn", "cn=users,dc=example,dc=com")
|
viper.SetDefault("Auth.LDAP.UserDn", "cn=users,dc=example,dc=com")
|
||||||
viper.SetDefault("Monitoring.ListenAddress", ":2112")
|
viper.SetDefault("Monitoring.ListenAddress", ":2112")
|
||||||
|
|
Loading…
Reference in New Issue