Skip to content

Commit

Permalink
Merge pull request #38 from Tico-Corp/fix-be/TICO-215-resolve-swagger…
Browse files Browse the repository at this point in the history
…-ui-error

[FIX] Nginx 프록시 수정 및 JWTFilter 수정 (TICO-215)
  • Loading branch information
bu119 authored Jul 12, 2024
2 parents 132a0d6 + 6aff9fa commit 909397f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
//필터 위치에 따라 OAuth2 인증을 진행하는 필터보다 JWTFilter가 앞에 존재하는 경우 에러 발생
String requestUri = request.getRequestURI();
//JWTFilter 내부에 if문을 통해 특정 경로 요청은 넘어가도록 수정
if (requestUri.matches("^\\/auth/google/login(?:\\/.*)?$")) {
if (requestUri.matches("^\\/api/auth/google/login(?:\\/.*)?$")) {

filterChain.doFilter(request, response);
return;
}
if (requestUri.matches("^\\/auth/google/join(?:\\/.*)?$")) {
if (requestUri.matches("^\\/api/auth/google/join(?:\\/.*)?$")) {

filterChain.doFilter(request, response);
return;
Expand Down
2 changes: 1 addition & 1 deletion nginx/conf/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ server {

# /api 경로 프록시 설정
location /api {
proxy_pass http://localhost:8080/api;
proxy_pass http://pomorodo.shop:8080/api;
}
}
}

0 comments on commit 909397f

Please sign in to comment.