Skip to content

Commit 5739056

Browse files
feat: swagger 페이지 오류 해결
1 parent 50e21c5 commit 5739056

6 files changed

Lines changed: 18 additions & 14 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ TheFirstTake는 AI 기반의 개인화된 패션 큐레이션 서비스입니다
192192
function handleKakaoLogin() {
193193
const kakaoAuthURL = 'https://kauth.kakao.com/oauth/authorize?' +
194194
'client_id=YOUR_KAKAO_CLIENT_ID&' +
195-
'redirect_uri=https://the-second-take.com/api/auth/kakao/callback&' +
195+
'redirect_uri=https://the-first-take.com/api/auth/kakao/callback&' +
196196
'response_type=code';
197197

198198
window.location.href = kakaoAuthURL;
@@ -879,8 +879,8 @@ SSE 이벤트 전송 (room, connect, content, complete, error)
879879
3. **플랫폼 및 리다이렉트 URI 설정**
880880
- "제품 설정" → "카카오 로그인" 활성화
881881
- "Redirect URI" 등록:
882-
- 개발: `https://the-second-take.com/api/auth/kakao/callback`
883-
- 운영: `https://the-second-take.com/api/auth/kakao/callback`
882+
- 개발: `https://the-first-take.com/api/auth/kakao/callback`
883+
- 운영: `https://the-first-take.com/api/auth/kakao/callback`
884884

885885
### 2. GitHub Actions Secrets 설정
886886

@@ -889,7 +889,7 @@ GitHub 저장소의 Settings → Secrets and variables → Actions에서 다음
889889
```
890890
KAKAO_CLIENT_ID=your_kakao_rest_api_key
891891
KAKAO_CLIENT_SECRET=your_kakao_client_secret
892-
KAKAO_REDIRECT_URI=https://the-second-take.com/api/auth/kakao/callback
892+
KAKAO_REDIRECT_URI=https://the-first-take.com/api/auth/kakao/callback
893893
JWT_SECRET=your_jwt_secret_key_min_256_bits
894894
```
895895

thefirsttake/src/main/java/com/thefirsttake/app/auth/controller/AuthController.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ public ResponseEntity<Void> kakaoCallback(
188188

189189
// 6. 프론트엔드로 리다이렉트
190190
HttpHeaders headers = new HttpHeaders();
191-
headers.setLocation(URI.create("https://the-second-take.com/"));
191+
// headers.setLocation(URI.create("https://the-second-take.com/"));
192+
headers.setLocation(URI.create("https://the-first-take.com/"));
192193
// headers.setLocation(URI.create("http://localhost:3000/"));
193194

194195
log.info("카카오 로그인 성공. 프론트엔드로 리다이렉트");
@@ -201,7 +202,9 @@ public ResponseEntity<Void> kakaoCallback(
201202
kakaoLoginFailureCounter.increment();
202203

203204
// 실패 시 에러 페이지로 리다이렉트
204-
String errorUrl = "https://the-second-take.com/auth/error?message=" +
205+
// String errorUrl = "https://the-second-take.com/auth/error?message=" +
206+
// URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8);
207+
String errorUrl = "https://the-first-take.com/auth/error?message=" +
205208
URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8);
206209

207210

thefirsttake/src/main/java/com/thefirsttake/app/chat/service/NewLLMStreamService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class NewLLMStreamService {
3030

3131
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
3232

33-
@Value("${llm.server.new-stream-url:https://the-second-take.com/langgraph/llm_search/stream}")
33+
@Value("${llm.server.new-stream-url:https://the-first-take.com/langgraph/llm_search/stream}")
3434
private String newLlmStreamUrl;
3535

3636
private final WebClient.Builder webClientBuilder;
@@ -402,7 +402,8 @@ private com.thefirsttake.app.chat.dto.response.ProductInfo searchProductById(Str
402402
log.info("상품 검색 시작: productId={}", productId);
403403

404404
// ProductSearchService를 사용하여 상품 검색
405-
String searchUrl = "https://the-second-take.com/search/" + productId;
405+
// String searchUrl = "https://the-second-take.com/search/" + productId;
406+
String searchUrl = "https://the-first-take.com/search/" + productId;
406407
@SuppressWarnings("unchecked")
407408
Map<String, Object> response = restTemplate.getForObject(searchUrl, Map.class);
408409

thefirsttake/src/main/java/com/thefirsttake/app/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public CorsConfigurationSource corsConfigurationSource() {
5151
"http://3.36.38.106:3000",
5252
"http://the-first-take.com",
5353
"https://the-first-take.com", // ✅ HTTPS 도메인 추가!
54-
"https://the-second-take.com" // ✅ the-second-take.com 도메인 추가!
54+
// "https://the-second-take.com" // ✅ the-second-take.com 도메인 추가!
5555
));
5656
config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
5757
config.setAllowedHeaders(List.of("*"));

thefirsttake/src/main/resources/application.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jpa:
4242
client-id: "client-id"
4343
client-secret: "client-secret"
4444
# redirect-uri: "http://172.16.101.234:3000/api/auth/callback/kakao"
45-
redirect-uri: "https://the-second-take.com/api/auth/kakao/callback" # 기존 프로덕션 값 (보존)
46-
# redirect-uri: "https://the-first-take.com/api/auth/callback/kakao"
45+
# redirect-uri: "https://the-second-take.com/api/auth/kakao/callback" # 기존 프로덕션 값 (보존)
46+
redirect-uri: "https://the-first-take.com/api/auth/kakao/callback"
4747
# redirect-uri: "http://localhost:8000/api/auth/kakao/callback"
4848
# redirect-uri: "http://localhost:3000/api/auth/callback/kakao"
4949
# redirect-uri: "http://localhost:5500/kakao-callback.html"
@@ -63,8 +63,8 @@ jwt:
6363
kakao:
6464
client-id: ${KAKAO_CLIENT_ID}
6565
client-secret: ${KAKAO_CLIENT_SECRET}
66-
redirect-uri: https://the-second-take.com/api/auth/kakao/callback
67-
# redirect-uri: https://the-first-take.com/api/auth/kakao/callback
66+
# redirect-uri: https://the-second-take.com/api/auth/kakao/callback
67+
redirect-uri: https://the-first-take.com/api/auth/kakao/callback
6868
# redirect-uri: http://localhost:8000/api/auth/kakao/callback
6969
llm:
7070
server:

thefirsttake/src/main/resources/static/kakao-login-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h3>API 테스트</h3>
139139
// 카카오 로그인 URL로 리다이렉트
140140
const kakaoAuthURL = 'https://kauth.kakao.com/oauth/authorize?' +
141141
'client_id=YOUR_KAKAO_CLIENT_ID&' +
142-
'redirect_uri=https://the-second-take.com/api/auth/kakao/callback&' +
142+
'redirect_uri=https://the-first-take.com/api/auth/kakao/callback&' +
143143
'response_type=code';
144144

145145
window.location.href = kakaoAuthURL;

0 commit comments

Comments
 (0)