added more stuff including some of docker support

This commit is contained in:
2025-03-15 21:16:17 +02:00
parent 4b9c30be7e
commit 5f99ec77a0
22 changed files with 1009 additions and 261 deletions

View File

@@ -27,35 +27,44 @@ type OidcAuthConfig struct {
}
type UserPassAuthConfig struct {
HashingAlgorithm string `yaml:"hashing_algorithm"`
Salt string `yaml:"salt"`
Type DatabaseType `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
}
type AuthorizationConfig struct {
Type string `yaml:"type"`
type AuthenticationConfig struct {
Type AuthMode `yaml:"type"`
Oidc OidcAuthConfig `yaml:"oidc"`
UserPass UserPassAuthConfig `yaml:"user_pass"`
}
type AuthentikDBConfig struct {
}
type ServersDatabaseConfig struct {
Type string `yaml:"type"`
type UsersDatabaseConfig struct {
Type DatabaseType `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
}
type UsersDatabaseConfig struct {
Type string `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
Authentik *AuthentikDBConfig `yaml:"authentik"`
type ServersInstanceManagerConfig struct {
Type InstanceManagerType
}
type ServersDatabaseConfig struct {
Type DatabaseType `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
}
type ServersAuthorizationDatabaseConfig struct {
Type DatabaseType `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
}
type GlobalConfig struct {
Email EmailConfig `yaml:"email"`
Signing SigningConfig `yaml:"signing"`
ServersDatabase ServersDatabaseConfig `yaml:"servers_database"`
UsersDatabase UsersDatabaseConfig `yaml:"users_database"`
Domain string `yaml:"domain"`
Auth AuthorizationConfig `yaml:"auth"`
// Features Configs
Email EmailConfig `yaml:"email"`
Domain string `yaml:"domain"`
Signing SigningConfig `yaml:"signing"`
Authentication AuthenticationConfig `yaml:"authentication"`
// Database Configs
ServersDatabase ServersDatabaseConfig `yaml:"servers_database"`
UsersDatabase UsersDatabaseConfig `yaml:"users_database"`
ServersAuthorizationDatabase ServersAuthorizationDatabaseConfig `yaml:"servers_authorization_database"`
}