Files
ocr_performance_lab/config/setting.py
2025-08-12 10:10:59 +09:00

22 lines
426 B
Python

import os
from dotenv import load_dotenv
load_dotenv()
# Redis 기본 설정
REDIS_HOST = "ocr_redis"
REDIS_PORT = 6379
REDIS_DB = 0
# Celery 설정
CELERY_BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
CELERY_RESULT_BACKEND = f"redis://{REDIS_HOST}:{REDIS_PORT}/1"
# Celery Flower 설정
CELERY_FLOWER = "http://ocr_celery_flower:5557/api/workers"
# Upstage API Key
UPSTAGE_API_KEY = os.getenv("UPSTAGE_API_KEY")