Skip to content
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
10 changes: 5 additions & 5 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
13 changes: 7 additions & 6 deletions src/main/java/com/example/mody/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down