Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DEVELOPMENT string `mapstructure:"DEVELOPMENT"`
DSN string `mapstructure:"DSN"`
DatabaseURL string `mapstructure:"DATABASE_URL"`
Port string `mapstructure:"PORT"`
AdminPort string `mapstructure:"ADMIN_PORT"`
SwaggerPort string `mapstructure:"SWAGGER_PORT"`
AppSecret string `mapstructure:"APP_SECRET"`
BaseIssuerURL string `mapstructure:"ISSUER_URL"`
CookieSecure bool `mapstructure:"COOKIE_SECURE"`
AllowedOrigins []string `mapstructure:"CORS_ALLOWED_ORIGINS"`
AdminAllowedOrigins []string `mapstructure:"ADMIN_CORS_ALLOWED_ORIGINS"`
RSAPrivateKeyBase64 string `mapstructure:"APP_PRIVATE_KEY_BASE64"`
LogLevel string `mapstructure:"LOG_LEVEL"`
AutoKeyRotationEnabled bool `mapstructure:"AUTO_KEY_ROTATION_ENABLED"`
// Security Tuning
SkipTLSVerify bool `mapstructure:"SKIP_TLS_VERIFY"`
// Database Connection Pool
DBMaxIdleConns int `mapstructure:"DB_MAX_IDLE_CONNS"`
DBMaxOpenConns int `mapstructure:"DB_MAX_OPEN_CONNS"`
// External UI URLs
ExternalLoginURL string `mapstructure:"EXTERNAL_LOGIN_URL"`
ExternalConsentURL string `mapstructure:"EXTERNAL_CONSENT_URL"`
// Multi-Tenancy
DefaultTenantID string `mapstructure:"DEFAULT_TENANT_ID"`
AccessTokenLifespan string `mapstructure:"ACCESS_TOKEN_LIFESPAN"`
RefreshTokenLifespan string `mapstructure:"REFRESH_TOKEN_LIFESPAN"`
IDTokenLifespan string `mapstructure:"ID_TOKEN_LIFESPAN"`
}
func LoadConfig ¶
func LoadConfig() *Config
Click to show internal directories.
Click to hide internal directories.