Skip to content

Commit f070f56

Browse files
committed
FEAT: 이미지최적화, 바텀바 올리기, 라우팅, 웹소켓 수정
1 parent 773f58f commit f070f56

7 files changed

Lines changed: 32 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
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 \

k8s/ingress.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ spec:
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:
@@ -68,6 +75,13 @@ spec:
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:

k8s/nextjs-client.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ spec:
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:*"

pay-service/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ server:
152152

153153
app:
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

159159
jwt:
160160
secret: ${JWT_SECRET_KEY:TogatherSecretkey}

trading-service/src/main/resources/application.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spring:
6868
jwt:
6969
secret-key: ${JWT_SECRET_KEY}
7070

71-
# 서비스 URL 설정
71+
# 서비스 URL 설정 (하위 호환성을 위해 유지)
7272
vote-service:
7373
url: ${VOTE_SERVICE_URL:http://localhost:8084}
7474

@@ -201,8 +201,12 @@ pay-service:
201201
app:
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 설정 (하위 호환성을 위해 유지)
207211
vote-service:
208-
url: ${VOTE_SERVICE_URL:http://vote-service:8080}
212+
url: ${VOTE_SERVICE_URL:http://vote-service.togather.svc.cluster.local:8080}

user-service/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ server:
139139
port: 8080
140140

141141
trading-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.* 를 사용

vote-service/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ jwt:
153153
refresh-exp-days: ${JWT_REFRESH_EXP:7}
154154

155155
user-service:
156-
url: ${USER_SERVICE_URL:http://user-service:8080}
156+
url: ${USER_SERVICE_URL:http://user-service.togather.svc.cluster.local:8080}
157157
trading-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 클라이언트 설정
161161
feign:

0 commit comments

Comments
 (0)