All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Changed admin email to admin@brandmaster.com (no dash) - Changed admin password to Admin123! - Fixed frontend Home.jsx to handle API errors gracefully - Added fallback to empty arrays when API calls fail - This prevents 'Cannot read properties of undefined' crash
29 lines
824 B
Python
29 lines
824 B
Python
from pydantic_settings import BaseSettings
|
|
from pathlib import Path
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str
|
|
jwt_secret_key: str
|
|
jwt_algorithm: str = "HS256"
|
|
access_token_expire_minutes: int = 30
|
|
frontend_url: str = "http://localhost:5173"
|
|
|
|
# Admin user credentials (created on first startup)
|
|
admin_email: str = "admin@brandmaster.com"
|
|
admin_password: str = "Admin123!" # Change via ADMIN_PASSWORD env var
|
|
admin_full_name: str = "System Administrator"
|
|
|
|
# Email configuration for password reset
|
|
smtp_host: str = "smtp.gmail.com"
|
|
smtp_port: int = 587
|
|
smtp_username: str = ""
|
|
smtp_password: str = ""
|
|
smtp_from: str = "noreply@brand-master.com"
|
|
|
|
class Config:
|
|
env_file = str(Path(__file__).parent.parent / ".env")
|
|
|
|
|
|
settings = Settings()
|