fix: HTTPS 전환 대비 forward-headers-strategy 설정 - #69
Closed
Junkov0 wants to merge 1 commit into
Closed
Conversation
Set server.forward-headers-strategy=framework so requests proxied through the nginx LB over HTTPS are recognized as secure by the app (correct OAuth2 redirect URIs, secure-cookie detection), instead of always looking like plain HTTP.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughSpring 서버에 Changes서버 헤더 설정
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2 tasks
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.
작업 내용
nginx-lb(신규 분산환경) 뒤에서 HTTPS로 들어오는 요청을 애플리케이션이 올바르게 인식하도록 설정합니다.
변경 사항
server.forward-headers-strategy: framework추가X-Forwarded-Proto/X-Forwarded-For/Host헤더를 넘겨주고 있었지만, 이 설정이 없어 Spring이 이를 신뢰하지 않고 항상 http로 인식하던 문제 수정체크리스트
참고 사항
SERVER_FORWARD_HEADERS_STRATEGY=framework)로 이미 동일하게 즉시 적용/재시작 완료함. 이 PR은 다음 정식 배포 시에도 유지되도록 소스에 반영하는 목적.momogo-api:compileJava통과 확인관련 이슈
Summary by CodeRabbit