2024-07-26 13:46:05 +02:00
|
|
|
package conf
|
|
|
|
|
|
|
|
import "sync"
|
|
|
|
|
|
|
|
type Config struct {
|
2024-10-30 16:18:21 +01:00
|
|
|
Demo bool
|
2024-10-30 12:38:25 +01:00
|
|
|
PublicKeyPath string
|
|
|
|
PrivateKeyPath string
|
2024-10-28 14:58:11 +01:00
|
|
|
|
|
|
|
LDAPEndpoints string
|
|
|
|
LDAPBindDN string
|
|
|
|
LDAPBindPW string
|
|
|
|
LDAPBaseDN string
|
|
|
|
LDAPRoleBaseDN string
|
|
|
|
|
|
|
|
ClientSecret string
|
|
|
|
|
|
|
|
Auth string
|
|
|
|
AuthConnectorHost string
|
|
|
|
AuthConnectorPort int
|
|
|
|
AuthConnectorAdminPort int
|
|
|
|
|
|
|
|
PermissionConnectorHost string
|
|
|
|
PermissionConnectorPort int
|
|
|
|
PermissionConnectorAdminPort int
|
2024-07-26 13:46:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var instance *Config
|
|
|
|
var once sync.Once
|
|
|
|
|
|
|
|
func GetConfig() *Config {
|
|
|
|
once.Do(func() {
|
|
|
|
instance = &Config{}
|
|
|
|
})
|
|
|
|
return instance
|
|
|
|
}
|