Add user database migration, core reusable components, and layout structure
This commit is contained in:
+14
-15
@@ -3,25 +3,24 @@ package config
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
Addr string
|
||||
DBDSN string
|
||||
JWTSecret string
|
||||
UploadPath string
|
||||
BaseURL string
|
||||
OIDCIssuer string
|
||||
JWKSUrl string
|
||||
AppEnv string
|
||||
Addr string
|
||||
DBDSN string
|
||||
JWTSecret string
|
||||
AdminPassword string
|
||||
UploadPath string
|
||||
BaseURL string
|
||||
AppEnv string
|
||||
}
|
||||
|
||||
func Load() *Config {
|
||||
return &Config{
|
||||
Addr: env("ADDR", ":8080"),
|
||||
DBDSN: env("DB_DSN", ""),
|
||||
UploadPath: env("UPLOAD_PATH", "./uploads"),
|
||||
BaseURL: env("BASE_URL", "http://localhost:8080"),
|
||||
OIDCIssuer: env("OIDC_ISSUER", "http://localhost:8180/realms/workorders"),
|
||||
JWKSUrl: env("JWKS_URL", "http://localhost:8180/realms/workorders/protocol/openid-connect/certs"),
|
||||
AppEnv: env("APP_ENV", "development"),
|
||||
Addr: env("ADDR", ":9080"),
|
||||
DBDSN: env("DB_DSN", ""),
|
||||
JWTSecret: env("JWT_SECRET", "change-me-in-production"),
|
||||
AdminPassword: env("ADMIN_PASSWORD", "admin123"),
|
||||
UploadPath: env("UPLOAD_PATH", "./uploads"),
|
||||
BaseURL: env("BASE_URL", "http://localhost:9080"),
|
||||
AppEnv: env("APP_ENV", "development"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user