chore: Cloudflare Tunnel 기반 EC2 진입 구성#2
Merged
Conversation
Contributor
Author
연결 이슈 정리
현재 PR #2는 수동으로 적용한 Cloudflare Tunnel + EC2 cloudflared + SG 정리를 코드화/문서화하는 PR입니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
EC2 애플리케이션 포트는 Cloudflare Tunnel로 전환하고, 운영용 SSH 접근은 유지합니다.
변경 사항
cloudflaredAnsible role 추가moa-cloudflared컨테이너 실행cloudflared_tunnel_token으로 외부 주입moa.yeoun.org→http://localhost:8080network_mode: host로 EC2 host network의 BE origin에 접근site.yml에cloudflaredrole 연결--tags cloudflared로 단독 실행 가능확인
moa-devCloudflare Tunnel 생성 및 connector token 발급moa.yeoun.org→ tunnel CNAME, proxiedmoa-dev.yeoun.orgDNS record 제거healthy확인https://moa.yeoun.org/api/ping→ 200https://moa.yeoun.org/swagger-ui/index.html→ 200비고
연결 이슈