kosmo138 / resumate

자기소개서를 세상에서 가장 쉽게 쓰는 방법
https://www.resumate.store
0 stars 0 forks source link

2차 배포 (BE) #91

Closed suyons closed 3 months ago

suyons commented 3 months ago

문제 1

Docker 개발 환경 기준으로 작성된 코드의 수정 필요

해결 1

EC2에서 GET localhost 요청 시 Nginx의 Bad gateway 페이지가 정상적으로 표시되는지 확인

ubuntu@ip-172-31-4-70:~$ curl -X GET "http://localhost/"
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

도커 컨테이너 간 요청을 위한 host.docker.internal 주소를 localhost로 대체해야 한다.

suyons commented 3 months ago

Close #91