diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index 91eacf6c..d4a15774 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -4,8 +4,8 @@ services: # 컨테이너 설정 image: mody-server #ecr에 올린 이미지로 수정 필요 #ecr에 올린 이미지로 수정 필요 environment: - SPRING_PROFILES_ACTIVE=prod - - REDIS_HOST=redis - - REDIS_PORT=6379 + - REDIS_HOST=redis-prod + - REDIS_PORT=6479 ports: - 8080:8080 depends_on: @@ -18,11 +18,11 @@ services: # 컨테이너 설정 container_name: redis-prod restart: unless-stopped # 컨테이너가 비정상적으로 종료되었을 때 재시작 ports: - - "66379:66379" + - 6479:6479 networks: - - mody-prod-network + - mody-network command: redis-server --appendonly yes # redis 서버가 비정상적으로 종료되었을 때 데이터를 보존하기 위해 설정 networks: - mody-prod-network: + mody-network: driver: bridge \ No newline at end of file diff --git a/src/main/java/com/example/mody/global/config/SecurityConfig.java b/src/main/java/com/example/mody/global/config/SecurityConfig.java index d2a89f38..37a1e9bc 100644 --- a/src/main/java/com/example/mody/global/config/SecurityConfig.java +++ b/src/main/java/com/example/mody/global/config/SecurityConfig.java @@ -94,12 +94,13 @@ public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); // 허용할 Origin 설정 - configuration.setAllowedOrigins(Arrays.asList( - "https://kkoalla.app", // 프론트엔드 도메인 - "https://kkoalla.app:5173", // 개발 서버 - "http://localhost:5173", // 로컬 개발 - "https://kkoalla.app:8443" - )); +// configuration.setAllowedOrigins(Arrays.asList( +// "https://kkoalla.app", // 프론트엔드 도메인 +// "https://kkoalla.app:5173", // 개발 서버 +// "http://localhost:5173", // 로컬 개발 +// "https://kkoalla.app:8443" +// )); + configuration.addAllowedOriginPattern("*"); // 허용할 HTTP 메서드 설정 configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));