Browse Source

modified storage path

tomoya 2 years ago
parent
commit
d7eb652c48
2 changed files with 5 additions and 5 deletions
  1. 1 1
      backend/app/app/api/api_v1/endpoints/videos.py
  2. 4 4
      backend/app/app/core/config.py

+ 1 - 1
backend/app/app/api/api_v1/endpoints/videos.py

@@ -17,7 +17,7 @@ from pathlib import Path
 from app.core.celery_app import celery_app
 
 BACKEND_ZIP_STORAGE = Path("/app").joinpath(settings.BACKEND_ZIP_STORAGE)
-LOCAL_ZIP_STORAGE = Path("/").joinpath(settings.BACKEND_ZIP_STORAGE)
+LOCAL_ZIP_STORAGE = Path("/").joinpath(settings.LOCAL_ZIP_STORAGE)
 
 
 router = APIRouter()

+ 4 - 4
backend/app/app/core/config.py

@@ -83,11 +83,11 @@ class Settings(BaseSettings):
 
     SERVER_ADDRESS: AnyHttpUrl = "http://172.105.219.42:8080"
 
-    CELERY_ZIP_STORAGE: str = "/celery_storage/zips"
-    CELERY_VIDEO_STORAGE: str = "/celery_storage/videos"
+    CELERY_ZIP_STORAGE: str = "celery_storage/zips"
+    CELERY_VIDEO_STORAGE: str = "celery_storage/videos"
 
-    BACKEND_ZIP_STORAGE: str = "/backend_storage/zips"
-    BACKEND_VIDEO_STORAGE: str = "/backend_storage/videos"
+    BACKEND_ZIP_STORAGE: str = "backend_storage/zips"
+    BACKEND_VIDEO_STORAGE: str = "backend_storage/videos"
 
     LOCAL_ZIP_STORAGE:str = 'local_storage/zips'
     LOCAL_VIDEO_STORAGE:str = 'local_storage/videos'