[ Refactor ] - fastapi 배포 서버 연결 설정 표준화 - #215
Merged
Merged
Conversation
bigwaveBigwave
requested review from
KSBoscoKim,
Kimd0ng,
SOOsuhyuncho,
hanjyoon01 and
shinh09
August 22, 2026 12:31
5 tasks
hanjyoon01
approved these changes
Aug 22, 2026
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.
관련 이슈
Resolves: #212
배경
AI-service의 FastAPI Client가 기본 로컬 주소에 의존하고 있어 팀원 및 배포 환경에서 공통으로 사용할 수 있는 연결 설정이 필요했습니다.
실제 서버 주소를 코드와 Git 저장소에 포함하지 않고, 환경별 설정으로 주입할 수 있도록 개선했습니다.
작업 사항
설정 방법
로컬 개발 환경에서는 Git에서 제외된 다음 파일을 사용합니다.
fastapi.properties
fastapi.base-url=<FastAPI 서버의 base URL>
배포 환경에서는 Tomcat 프로세스에 다음 OS 환경변수를 등록합니다.
FASTAPI_BASE_URL=<FastAPI 서버의 base URL>
실제 서버 주소 및 API 경로는 저장소와 PR 본문에 포함하지 않습니다.
영향 범위
검증
.\gradlew.bat :services:ai-service:test :api:war --no-daemon
결과:
BUILD SUCCESSFUL
추가 확인:
참고사항