- Update all references in frontend, backend, and docker configs - Update README, pyproject.toml, layout, sidebar - Docker container names updated Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
778 B
Python
35 lines
778 B
Python
"""
|
|
Application configuration using Pydantic Settings.
|
|
"""
|
|
from pydantic_settings import BaseSettings
|
|
from functools import lru_cache
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
# Application
|
|
app_name: str = "Galaxis-Po"
|
|
debug: bool = False
|
|
|
|
# Database
|
|
database_url: str = "postgresql://galaxy:devpassword@localhost:5432/galaxy_po"
|
|
|
|
# JWT
|
|
jwt_secret: str = "dev-jwt-secret-change-in-production"
|
|
jwt_algorithm: str = "HS256"
|
|
access_token_expire_minutes: int = 60 * 24 # 24 hours
|
|
|
|
# External APIs
|
|
kis_app_key: str = ""
|
|
kis_app_secret: str = ""
|
|
kis_account_no: str = ""
|
|
dart_api_key: str = ""
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
case_sensitive = False
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|