OrbStack 라이선스 만료로 Mac mini Docker 서비스를 GPU 서버로 통합. nginx → Caddy 전환, 12개 서브도메인 자동 HTTPS, fail2ban Caddy JSON 연동. 주요 변경: - home-caddy: Caddy 리버스 프록시 (Let's Encrypt 자동 HTTPS) - home-fail2ban: Caddy JSON 로그 기반 보안 모니터링 - home-ddns: Cloudflare DDNS (API 키 .env 분리) - gpu-hub-api/web: AI 백엔드 라우터 + 웹 UI (gpu-services에서 이전) - AI 런타임(Ollama) 내부망 전용, 외부는 gpu-hub 인증 게이트웨이 경유 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
547 B
Python
22 lines
547 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
owner_password: str = "changeme"
|
|
guest_password: str = "guest"
|
|
jwt_secret: str = "dev-secret-change-in-production"
|
|
jwt_algorithm: str = "HS256"
|
|
jwt_expire_hours: int = 24
|
|
|
|
backends_config: str = "/app/config/backends.json"
|
|
cors_origins: str = "http://localhost:5173"
|
|
|
|
nvidia_smi_path: str = "/usr/bin/nvidia-smi"
|
|
|
|
db_path: str = "/app/data/gateway.db"
|
|
|
|
model_config = {"env_file": ".env", "extra": "ignore"}
|
|
|
|
|
|
settings = Settings()
|