Skip to content

Commit

Permalink
Refactor: 웹서버 설정 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river committed Jan 13, 2025
1 parent f7b2aed commit ccc78f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions KUA/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ccc78f7

Please sign in to comment.