Spaces:
Runtime error
Runtime error
| import os | |
| from pydantic_settings import BaseSettings | |
| class Settings(BaseSettings): | |
| PROJECT_NAME: str = "ConstructHire API" | |
| API_V1_STR: str = "/api" | |
| # Security config | |
| # In production, this must be a secure random hex string read from environment | |
| SECRET_KEY: str = os.getenv("SECRET_KEY", "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7") | |
| ALGORITHM: str = "HS256" | |
| ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 7 # 7 days for BCA viva convenience | |
| # Database settings | |
| DATABASE_URL: str = os.getenv("DATABASE_URL", "postgresql://postgres:postgres@localhost:5432/constructhire") | |
| class Config: | |
| case_sensitive = True | |
| settings = Settings() | |