Repository navigation
Conversation
OAuth2·JWT·JPA 공통 설정을 application.yml로 옮겨 dev 프로필 없이도 뜨게 하고, nginx 뒤 서버용 설정(forwarded header, secure 쿠키, 프론트 URL)을 application-server.yml로 분리
Backend Code Health ReportCommit:
Attention
|
7 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.
변경점 👍
Fin-BE-test 포크에서 하던 dev 서버 배포를 이 레포로 옮기는 작업의 첫 단계입니다. 운영 서버가
dev프로필 없이 뜰 수 있도록 설정을 나눴습니다. 배포 워크플로는 다음 PR에서 올립니다.application.yml:application-dev.yml에 있던 공통 설정(OAuth2 클라이언트, JWT, JPA validate,sql.init, OAuth2 리다이렉트 경로)을 옮겼습니다.application-dev.yml: 로컬 전용 값만 남겼습니다(localhost DB, 프론트localhost:5173, 비보안 쿠키).application-server.yml(신규): 서버 공통 설정입니다. Fin-BE-test의application-test.yml에서 서버용 차이만 가져왔습니다.server.forward-headers-strategy: framework(nginx 뒤에서 https 리다이렉트 URL 생성)app.cookie.secure: true,same-site: Noneapp.frontend.url: ${FRONTEND_URL}SPRING_DATASOURCE_*환경 변수로 받습니다.dev,server(Swagger 켜짐), 운영은server.로컬 실행 방법은 바뀌지 않습니다.
.env도 그대로 쓰면 됩니다.테스트 💻
./gradlew test integrationTest통과bootJar를 로컬 DB에 붙여 직접 기동dev): 기동, Swagger 200, OAuthredirect_uri가http://localhostserver단독(.env 없이 환경 변수만): 기동, Flyway validate 통과,/api/categories200, Swagger 401(차단),X-Forwarded-Proto: https일 때redirect_uri가 https 도메인비고
머지해도 서버에는 영향이 없습니다. 전체 계획은 Fin-BE(배포)와 Fin-API(CI, 2주 간격 수집) PR로 이어집니다.