From ccc78f7e6d2d835998a157a482c0c5ec21aa2105 Mon Sep 17 00:00:00 2001 From: Joyriver-Desktop Date: Mon, 13 Jan 2025 22:22:26 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EC=9B=B9=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KUA/nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/KUA/nginx.conf b/KUA/nginx.conf index b947807..e90ba04 100644 --- a/KUA/nginx.conf +++ b/KUA/nginx.conf @@ -17,6 +17,13 @@ http { listen 80; server_name api.kuna.devkor.club; + # Media 파일 경로 설정 + location /media/ { + alias /devkor-teamb-back/media/; # media 디렉토리 경로 (호스트 머신 경로) + autoindex on; # 디렉토리 탐색 활성화 (필요에 따라 제거 가능) + } + + # Django 애플리케이션 경로 location / { proxy_pass http://kua-backend:8000; # Django 컨테이너로 요청 전달 proxy_set_header Host $host;