feat(server): support SQLite via DB_TYPE env var
Build and Publish Server / build (push) Failing after 43s
Build and Publish Server / build (push) Failing after 43s
This commit is contained in:
@@ -20,6 +20,7 @@ type ServerConfig struct {
|
||||
}
|
||||
|
||||
type DatabaseConfig struct {
|
||||
Type string
|
||||
Host string
|
||||
Port string
|
||||
User string
|
||||
@@ -59,6 +60,7 @@ func Load() *Config {
|
||||
CORSOrigins: getEnv("CORS_ORIGINS", ""),
|
||||
},
|
||||
Database: DatabaseConfig{
|
||||
Type: getEnv("DB_TYPE", "mysql"),
|
||||
Host: getEnv("DB_HOST", "localhost"),
|
||||
Port: getEnv("DB_PORT", "3306"),
|
||||
User: getEnv("DB_USER", "root"),
|
||||
|
||||
Reference in New Issue
Block a user