Skip to content

10주차 미션 [레인] - #48

Open
geumbiii wants to merge 4 commits into
mainfrom
rain/week10
Open

10주차 미션 [레인]#48
geumbiii wants to merge 4 commits into
mainfrom
rain/week10

Conversation

@geumbiii

@geumbiii geumbiii commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator
  • GitHub Actions와 AWS EC2를 이용하여 직접 CI/CD 배포
  • EC2를 이용해 배포한 현재 상태에서 Google 로그인이 동작하지 않는 이유를 확인하고 수정

실습

스크린샷 2026-06-04 오전 2 32 45 스크린샷 2026-06-04 오후 5 01 43 스크린샷 2026-06-04 오전 2 46 43 스크린샷 2026-06-04 오후 5 00 22 계속 타임아웃 뜸...

미션

EC2 배포 상태에서 Google 로그인 안 되는 이유: “배포된 서버 기준 URL 문제”
내 코드 내부: http://localhost:3000/oauth2/callback/google
실제 서버는: http://3.37.127.50:3000

로그인 흐름(결과적으로 로그인 실패):

  1. Google 로그인 성공
  2. Google → redirect
  3. ❌ localhost로 돌아감
  4. EC2 서버에 요청 안 감

-> redirect URI 변경
// 기존
http://localhost:3000/oauth2/callback/google
// 수정
http://3.37.127.50:3000/oauth2/callback/google

-> .env 수정
GOOGLE_REDIRECT_URI=http://3.37.127.50:3000/oauth2/callback/google

-> Google Cloud 콘솔 수정
Authorized redirect URI에 추가 http://3.37.127.50:3000/oauth2/callback/google

-> 서버 재시작

@geumbiii geumbiii self-assigned this Jun 3, 2026
@geumbiii geumbiii linked an issue Jun 3, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD 파이프라인 구축

1 participant