Skip to content

Commit

Permalink
chore: nginx 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Dec 3, 2024
1 parent 42a386f commit 71504fc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions layer-api/infra/production/nginx.blue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ http {
server localhost:3000;
}

# api.layerapp.io에 대한 서버 블록
server {
listen 80;
server_name api.layerapp.io;

location / {
proxy_pass http://layer-api;
Expand All @@ -19,13 +21,19 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

location /admin/ {
# admin.api.layerapp.io에 대한 서버 블록
server {
listen 80;
server_name admin.api.layerapp.io;

location / {
proxy_pass http://layer-admin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}
}
12 changes: 10 additions & 2 deletions layer-api/infra/production/nginx.green.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ http {
server localhost:3000;
}

# api.layerapp.io에 대한 서버 블록
server {
listen 80;
server_name api.layerapp.io;

location / {
proxy_pass http://layer-api;
Expand All @@ -19,13 +21,19 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

location /admin/ {
# admin.api.layerapp.io에 대한 서버 블록
server {
listen 80;
server_name admin.api.layerapp.io;

location / {
proxy_pass http://layer-admin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}
}

0 comments on commit 71504fc

Please sign in to comment.