Skip to content

Commit

Permalink
chore: admin 모듈 리버스 프록시 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Dec 3, 2024
1 parent 50ef17f commit 7dc6747
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions layer-api/infra/production/nginx.blue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ http {
server localhost:8081;
}

upstream layer-admin {
server localhost:3000;
}


server {
listen 80;

Expand All @@ -15,5 +20,13 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location /admin/ {
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;
}
}
}
13 changes: 13 additions & 0 deletions layer-api/infra/production/nginx.green.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ http {
server localhost:8080;
}

upstream layer-admin {
server localhost:3000;
}


server {
listen 80;

Expand All @@ -15,5 +20,13 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location /admin/ {
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 7dc6747

Please sign in to comment.