27 lines
640 B
Python
27 lines
640 B
Python
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
# Redis 기본 설정
|
|
REDIS_HOST = "ocr_perf_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_perf_flower:5557/api/workers"
|
|
|
|
# Upstage API Key
|
|
UPSTAGE_API_KEY = os.getenv("UPSTAGE_API_KEY")
|
|
|
|
# MinIO Settings
|
|
MINIO_ENDPOINT = os.getenv("MINIO_ENDPOINT")
|
|
MINIO_ACCESS_KEY = os.getenv("MINIO_ACCESS_KEY")
|
|
MINIO_SECRET_KEY = os.getenv("MINIO_SECRET_KEY")
|
|
MINIO_BUCKET_NAME = os.getenv("MINIO_BUCKET_NAME")
|