Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Nginx 프록시 수정 및 JWTFilter 수정 (TICO-215) #38

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
}
Loading