Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MinJWTSecretLength is the minimum required length for JWT secrets // HS256 requires at least 32 bytes (256 bits) for security, but we use 16 as a practical minimum MinJWTSecretLength = 16 )
Variables ¶
This section is empty.
Functions ¶
func ValidateSecrets ¶ added in v0.1.7
ValidateSecrets validates that secrets meet security requirements.
Types ¶
type AppConfig ¶ added in v0.1.7
AppConfig combines non-sensitive configuration with sensitive secrets. This is the main configuration struct used by the application.
type Config ¶
type Config struct {
DBDialect string `env:"DB_DIALECT,required"`
ServerPort string `env:"SERVER_PORT"`
EntSchemaPath string `env:"ENT_SCHEMA_PATH"`
CentrifugoApiAddress string `env:"CENTRIFUGO_API_ADDRESS,required"`
FileStorageProvider string `env:"FILE_STORAGE_PROVIDER"`
FileStoragePath string `env:"FILE_STORAGE_PATH"`
// Environment specifies which Infisical environment to fetch secrets from (dev, staging, prod)
Environment string `env:"APP_ENVIRONMENT"`
}
Config holds non-sensitive application configuration loaded from environment variables. Sensitive credentials (DSN, SecretKey, CentrifugoKey) are managed separately via the secrets package.
Click to show internal directories.
Click to hide internal directories.