fix: 캘린더 모달 중복 카드 문제 및 삭제 권한 개선
- monthly_worker_status 조회 시 GROUP BY로 중복 데이터 합산 - 작업보고서 삭제 권한을 그룹장 이상으로 제한 (admin, system, group_leader) - 중복 데이터 정리를 위한 마이그레이션 SQL 추가 (009_fix_duplicate_monthly_status.sql) - synology_deployment 버전에도 동일 수정 적용
This commit is contained in:
40
synology_deployment/fastapi-bridge/config.py
Normal file
40
synology_deployment/fastapi-bridge/config.py
Normal file
@@ -0,0 +1,40 @@
|
||||
"""
|
||||
FastAPI 브릿지 설정
|
||||
"""
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
class Settings:
|
||||
# 기본 설정
|
||||
FASTAPI_PORT: int = int(os.getenv("FASTAPI_PORT", "8000"))
|
||||
EXPRESS_API_URL: str = os.getenv("EXPRESS_API_URL", "http://api:20005")
|
||||
REDIS_URL: str = os.getenv("REDIS_URL", "redis://localhost:6379")
|
||||
NODE_ENV: str = os.getenv("NODE_ENV", "development")
|
||||
|
||||
# CORS 설정
|
||||
CORS_ORIGINS: List[str] = [
|
||||
"http://localhost:3000",
|
||||
"http://localhost:8000",
|
||||
"https://api.technicalkorea.com"
|
||||
]
|
||||
|
||||
# 로깅
|
||||
LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO")
|
||||
|
||||
# API 설정
|
||||
API_V1_PREFIX: str = "/api"
|
||||
PROJECT_NAME: str = "TK FastAPI Bridge"
|
||||
VERSION: str = "1.0.0"
|
||||
|
||||
# 프록시 설정
|
||||
PROXY_TIMEOUT: int = 30
|
||||
MAX_CONNECTIONS: int = 100
|
||||
|
||||
# 캐시 설정
|
||||
CACHE_DEFAULT_TTL: int = 300 # 5분
|
||||
CACHE_HEALTH_TTL: int = 60 # 1분
|
||||
CACHE_AUTH_TTL: int = 900 # 15분
|
||||
CACHE_API_TTL: int = 180 # 3분
|
||||
CACHE_STATIC_TTL: int = 3600 # 1시간
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user