From a17abff334d3e60d4b57f24c2fe65cd3d3d3aa14 Mon Sep 17 00:00:00 2001 From: Eunhak Lee <lee@enak.kr> Date: Sat, 30 Nov 2024 15:09:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=A0=ED=8A=B8=EC=97=94?= =?UTF-8?q?=EB=93=9C=20=EC=97=94=EB=93=9C=ED=8F=AC=EC=9D=B8=ED=8A=B8=20?= =?UTF-8?q?=EB=B6=99=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 3 ++- nginx/nginx.conf | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cff416a..3d2fda7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,9 +20,10 @@ services: - ./nginx/mime.types:/etc/nginx/mime.types - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/log/nginx:/var/log/nginx + - ./frontend:/var/www/html/:r restart: always ports: - - 80 + - 50080:80 backend: image: git.ajou.ac.kr:5050/meanspec/meanspec-backend:latest diff --git a/nginx/nginx.conf b/nginx/nginx.conf index fbcd993..b60ace4 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -74,7 +74,9 @@ http { #client_max_body_sze 1G; - location / { + root /var/www/html/; + + location /api { proxy_pass_header Server; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -- GitLab