| 컨테이너 |
포트 |
컨테이너 내부 포트 |
| MySQL |
3308 |
3306 |
| Billage_back |
8080 |
8080 |
| Billage_front |
5173 |
5173 |
| jenkins |
9090 |
8080 |
| jenkins_ibk |
9091 |
8080 |
| ibk_discovery_service |
8761 |
8761 |
| mydata |
8762 |
8762 |
| KB |
8763 |
8763 |
IBK MSA
| 컨테이너 |
포트 |
컨테이너 내부 포트 |
| discover-service |
8761 |
8761 |
| gateway-service |
9000 |
9000 |
| user_service |
8011 |
8011 |
| transfer-service |
8012 |
8012 |
| account-service |
8013 |
8013 |
| netamount-service |
8014 |
8014 |
KB MSA
| 컨테이너 |
포트 |
컨테이너 내부 포트 |
| discover-service |
8764 |
8764 |
| gateway-service |
9001 |
9001 |
| user_service |
7011 |
7011 |
| transfer-service |
7012 |
7012 |
| account-service |
7013 |
7013 |
| netamount-service |
7014 |
7014 |
Nginx Config
server {
listen 80; #80포트로 받을 때
server_name j9b108.p.ssafy.io; # 없을경우 localhost
return 301 https://j9b108.p.ssafy.io$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name j9b108.p.ssafy.io;
# ssl 인증서 적용하기
ssl_certificate /etc/letsencrypt/live/j9b108.p.ssafy.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/j9b108.p.ssafy.io/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass <http://localhost:5173>;
}
location /api/ { # location 이후 특정 url을 처리하는 방법을 정의
proxy_pass <http://localhost:8080/>; # Request에 대해 어디로 리다이렉트하는지
proxy_redirect off;
charset utf-8;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
location /mydata/ { # location 이후 특정 url을 처리하는 방법을 정의
proxy_pass <http://localhost:8762/>; # Request에 대해 어디로 리다이렉트하는지
# proxy_redirect off;
charset utf-8;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
location /kb/ {
proxy_pass <http://localhost:8763/>;
# proxy_redirect off;
charset utf-8;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
location /ibk/ {
proxy_pass <http://localhost:9000/>;
# proxy_redirect off;
charset utf-8;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
location /openbank/ {
proxy_pass <http://localhost:8088/>;
# proxy_redirect off;
charset utf-8;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host;
}
} 1,5 Top