File tree Expand file tree Collapse file tree
pay-service/src/main/resources
trading-service/src/main/resources
user-service/src/main/resources
vote-service/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 # ✅ Next.js 단일 빌드 (Node runtime)
9090 SERVER_API_BASE_URL=http://api-gateway.togather.svc.cluster.local:8000/api \
9191 NEXT_PUBLIC_API_BASE_URL=https://xn--o79aq2k062a.store/api \
92+ NEXT_PUBLIC_WS_URL=wss://xn--o79aq2k062a.store/ws \
9293 CDN_URL=$CDN_URL_CLEAN pnpm run build
9394
9495 # ✅ 빌드 결과 검증 (server.js 또는 next-server.js 중 하나라도 있으면 성공)
@@ -141,6 +142,7 @@ jobs:
141142 if docker build \
142143 --build-arg SERVER_API_BASE_URL=http://api-gateway.togather.svc.cluster.local:8000/api \
143144 --build-arg NEXT_PUBLIC_API_BASE_URL=https://xn--o79aq2k062a.store/api \
145+ --build-arg NEXT_PUBLIC_WS_URL=wss://xn--o79aq2k062a.store/ws \
144146 --build-arg CDN_URL=${{ env.CDN_URL }} \
145147 -t $ECR_REGISTRY/togather/client:${{ github.sha }} \
146148 -t $ECR_REGISTRY/togather/client:latest \
Original file line number Diff line number Diff line change 4444 name : api-gateway
4545 port :
4646 number : 8000
47+ - path : /ws
48+ pathType : Prefix
49+ backend :
50+ service :
51+ name : api-gateway
52+ port :
53+ number : 8000
4754 - path : /
4855 pathType : Prefix
4956 backend :
6875 name : api-gateway
6976 port :
7077 number : 8000
78+ - path : /ws
79+ pathType : Prefix
80+ backend :
81+ service :
82+ name : api-gateway
83+ port :
84+ number : 8000
7185 - path : /
7286 pathType : Prefix
7387 backend :
Original file line number Diff line number Diff line change 4545 # 🚀 CDN 설정 (정적 자산용)
4646 - name : CDN_URL
4747 value : " https://d36ue99r8i68ow.cloudfront.net"
48+ # 🚀 WebSocket 설정
49+ - name : NEXT_PUBLIC_WS_URL
50+ value : " wss://xn--o79aq2k062a.store/ws"
4851 # 💡 아래 환경 변수들이 Next.js의 상세 로그를 활성화합니다.
4952 - name : DEBUG
5053 value : " next:*"
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ server:
152152
153153app :
154154 trading-service :
155- url : ${TRADING_SERVICE_URL:http://trading-service:8080}
155+ url : ${TRADING_SERVICE_URL:http://trading-service.togather.svc.cluster.local :8080}
156156 user-service :
157- url : ${USER_SERVICE_URL:http://user-service:8080}
157+ url : ${USER_SERVICE_URL:http://user-service.togather.svc.cluster.local :8080}
158158
159159jwt :
160160 secret : ${JWT_SECRET_KEY:TogatherSecretkey}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ spring:
6868jwt :
6969 secret-key : ${JWT_SECRET_KEY}
7070
71- # 서비스 URL 설정
71+ # 서비스 URL 설정 (하위 호환성을 위해 유지)
7272vote-service :
7373 url : ${VOTE_SERVICE_URL:http://localhost:8084}
7474
@@ -201,8 +201,12 @@ pay-service:
201201app :
202202 services :
203203 user-service :
204- url : ${USER_SERVICE_URL:http://user-service:8080}
204+ url : ${USER_SERVICE_URL:http://user-service.togather.svc.cluster.local:8080}
205+ vote-service :
206+ url : ${VOTE_SERVICE_URL:http://vote-service.togather.svc.cluster.local:8080}
207+ pay-service :
208+ url : ${PAY_SERVICE_URL:http://pay-service.togather.svc.cluster.local:8080}
205209
206- # 서비스 URL 설정
210+ # 서비스 URL 설정 (하위 호환성을 위해 유지)
207211vote-service :
208- url : ${VOTE_SERVICE_URL:http://vote-service:8080}
212+ url : ${VOTE_SERVICE_URL:http://vote-service.togather.svc.cluster.local :8080}
Original file line number Diff line number Diff line change @@ -139,6 +139,6 @@ server:
139139 port : 8080
140140
141141trading-service :
142- url : ${TRADING_SERVICE_URL:http://trading-service:8080}
142+ url : ${TRADING_SERVICE_URL:http://trading-service.togather.svc.cluster.local :8080}
143143
144144# JWT 설정은 module-common의 app.jwt.* 를 사용
Original file line number Diff line number Diff line change 153153 refresh-exp-days : ${JWT_REFRESH_EXP:7}
154154
155155user-service :
156- url : ${USER_SERVICE_URL:http://user-service:8080}
156+ url : ${USER_SERVICE_URL:http://user-service.togather.svc.cluster.local :8080}
157157trading-service :
158- url : ${TRADING_SERVICE_URL:http://trading-service:8080}
158+ url : ${TRADING_SERVICE_URL:http://trading-service.togather.svc.cluster.local :8080}
159159
160160# Feign 클라이언트 설정
161161feign :
You can’t perform that action at this time.
0 commit comments