Skip to content

Commit

Permalink
Merge pull request #377 from modern-agile-team/deploy/#368/developmen…
Browse files Browse the repository at this point in the history
…t_subdomain_set

Deploy/#368/development subdomain setting
  • Loading branch information
2swo authored Mar 20, 2024
2 parents fd20fd0 + 3a0a552 commit 91982b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ services:
- '6379:6379'
restart: always

nginx-certbot:
image: 2swo/back-nginx-certbot
api-nginx-certbot:
image: 2swo/api-back-nginx-certbot
ports:
- '80:80'
- '443:443'
env_file:
- .env.nginx-certbot

# dev-nginx-certbot: #dev서버 nginx파일
# image: 2swo/dev-back-nginx-certbot
# ports:
# - '80:80'
# - '443:443'
# env_file:
# - .env.nginx-certbot

# mysql 이미지는 따로 dockerfile로 빌드되진 않습니다.
# version과 port,env파일명,command 참고하시면 될 것 같습니다.
# development_db:
Expand Down
9 changes: 6 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ events {
http {
server {
listen 80;
server_name api.menbosha.kr; # back은 api만 사용
server_name api.menbosha.kr; # 베포백서버
# server_name dev.menbosha.kr; # 개발백서버
location / {
proxy_pass http://13.124.22.25:3000;
proxy_pass http://13.124.22.25:3000; # 베포백서버 ipv4
# proxy_pass http://15.164.222.126:3000; # 개발백서버 ipv4
}
location /socket.io/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://13.124.22.25:3000;
proxy_pass http://13.124.22.25:3000; # 베포백서버 ipv4
# proxy_pass http://15.164.222.126:3000; # 개발백서버 ipv4
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down

0 comments on commit 91982b5

Please sign in to comment.