refactored
This commit is contained in:
@@ -43,11 +43,6 @@ type AuthenticationConfig struct {
|
||||
UserPass UserPassAuthConfig `yaml:"user_pass"`
|
||||
}
|
||||
|
||||
type UsersDatabaseConfig struct {
|
||||
Type DatabaseType `yaml:"type"`
|
||||
Mongo *MongoDBConfig `yaml:"mongo"`
|
||||
}
|
||||
|
||||
type FileBrowserConfig struct {
|
||||
Image Image `yaml:"image"`
|
||||
Command string `yaml:"command"`
|
||||
@@ -62,8 +57,8 @@ type DockerInstanceManagerConfig struct {
|
||||
}
|
||||
|
||||
type InstanceManagerConfig struct {
|
||||
Type InstanceManagerType `yaml:"type"`
|
||||
Docker DockerInstanceManagerConfig `yaml:"docker"`
|
||||
Type InstanceManagerType `yaml:"type"`
|
||||
Docker *DockerInstanceManagerConfig `yaml:"docker"`
|
||||
}
|
||||
|
||||
type ServersDatabaseConfig struct {
|
||||
@@ -86,11 +81,10 @@ type GlobalConfig struct {
|
||||
Domain string `yaml:"domain"`
|
||||
Signing SigningConfig `yaml:"signing"`
|
||||
Authentication AuthenticationConfig `yaml:"authentication"`
|
||||
InstanceManager InstanceManagerConfig `yaml:"instance_manager"`
|
||||
InstanceManager InstanceManagerConfig `yaml:"instancemanager"`
|
||||
Users UsersConfig `yaml:"users"`
|
||||
|
||||
// Database Configs
|
||||
ServersDatabase ServersDatabaseConfig `yaml:"servers_database"`
|
||||
UsersDatabase UsersDatabaseConfig `yaml:"users_database"`
|
||||
ServersAuthorizationDatabase ServersAuthorizationDatabaseConfig `yaml:"servers_authorization_database"`
|
||||
}
|
||||
|
@@ -1,3 +1,3 @@
|
||||
module git.acooldomain.co/server-manager/backend-kubernetes-go/models
|
||||
module git.acooldomain.co/server-manager/backend/models
|
||||
|
||||
go 1.22.0
|
||||
|
Reference in New Issue
Block a user