Skip to content

Commit 7a73822

Browse files
committed
fix: 도커 이미지 이름 수정
1 parent c27c024 commit 7a73822

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.9'
22

33
services:
44
app:
5-
image: ${DOCKER_USERNAME}/play-hive:latest # 사용할 이미지 이름
5+
image: ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:latest # 사용할 이미지 이름
66
build:
77
context: . # Dockerfile이 위치한 디렉토리
88
dockerfile: Dockerfile # 빌드에 사용할 Dockerfile
@@ -47,6 +47,7 @@ services:
4747
JWT_ISSUER: ${JWT_ISSUER}
4848
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
4949
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
50+
DOCKER_IMAGE_NAME: ${DOCKER_IMAGE_NAME}
5051
networks:
5152
- playhive-net
5253
restart: always

src/main/java/org/myteam/server/global/security/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class SecurityConfig {
6262
/** @brief health check */
6363
"/status",
6464
/** @brief prometheus config */
65-
"/api/v1/actuator/**", "/api/v1/query", "/actuator/**",
65+
"/actuator/prometheus",
6666
// Swagger Documents
6767
/** @brief Swagger Docs */
6868
"/v3/api-docs/**", "/swagger-ui/**",

src/main/java/org/myteam/server/global/security/filter/TokenAuthenticationFilter.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
5454
String authorizationHeader = request.getHeader(HEADER_AUTHORIZATION);
5555
String accessToken = jwtProvider.getAccessToken(authorizationHeader);
5656

57-
String path = request.getRequestURI();
58-
log.info("request uri: {}", path);
59-
if (path.startsWith("/actuator/prometheus") || path.startsWith("/actuator/health")) {
60-
log.info("[TokenAuthenticationFilter] 요청 제외 path = {}", path);
61-
filterChain.doFilter(request, response); // 인증 필터 건너뜀
62-
return;
63-
}
64-
6557
log.info("accessToken : " + accessToken);
6658
if (StringUtils.isNotBlank(accessToken)) {
6759
try {

0 commit comments

Comments
 (0)