event 서비스 설정파일 충돌 수정

This commit is contained in:
merrycoral
2025-10-28 13:33:00 +09:00
parent e2179daaf7
commit 2ca453f89e
190 changed files with 15315 additions and 49 deletions
@@ -8,7 +8,7 @@
<entry key="DB_PASSWORD" value="Hi5Jessica!" />
<entry key="DB_PORT" value="5432" />
<entry key="DB_USERNAME" value="eventuser" />
<entry key="DDL_AUTO" value="validate" />
<entry key="DDL_AUTO" value="update" />
<entry key="JWT_EXPIRATION" value="86400000" />
<entry key="JWT_SECRET" value="kt-event-marketing-secret-key-for-development-only-change-in-production" />
<entry key="KAFKA_BOOTSTRAP_SERVERS" value="20.249.182.13:9095,4.217.131.59:9095" />
@@ -22,7 +22,7 @@
</map>
</option>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$/participation-service" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
@@ -30,7 +30,7 @@
</option>
<option name="taskNames">
<list>
<option value="participation-service:bootRun" />
<option value=":participation-service:bootRun" />
</list>
</option>
<option name="vmOptions" />
+14
View File
@@ -0,0 +1,14 @@
-- participation-service 인덱스 중복 문제 해결 스크립트
-- 실행 방법: psql -h 4.230.72.147 -U eventuser -d participationdb -f fix-indexes.sql
-- 기존 중복 인덱스 삭제 (존재하는 경우만)
DROP INDEX IF EXISTS idx_event_id;
DROP INDEX IF EXISTS idx_event_phone;
-- 새로운 고유 인덱스는 Hibernate가 자동 생성하므로 별도 생성 불필요
-- 다음 서비스 시작 시 자동으로 생성됩니다:
-- - idx_draw_log_event_id (draw_logs 테이블)
-- - idx_participant_event_id (participants 테이블)
-- - idx_participant_event_phone (participants 테이블)
COMMIT;
@@ -14,7 +14,7 @@ import lombok.*;
@Entity
@Table(name = "draw_logs",
indexes = {
@Index(name = "idx_event_id", columnList = "event_id")
@Index(name = "idx_draw_log_event_id", columnList = "event_id")
}
)
@Getter
@@ -13,8 +13,9 @@ import lombok.*;
@Entity
@Table(name = "participants",
indexes = {
@Index(name = "idx_event_id", columnList = "event_id"),
@Index(name = "idx_event_phone", columnList = "event_id, phone_number")
@Index(name = "idx_participant_event_id", columnList = "event_id"),
@Index(name = "idx_participant_event_phone", columnList = "event_id, phone_number")
},
uniqueConstraints = {
@UniqueConstraint(name = "uk_event_phone", columnNames = {"event_id", "phone_number"})
@@ -24,6 +24,8 @@ public class SecurityConfig {
.csrf(csrf -> csrf.disable())
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(auth -> auth
// Actuator endpoints
.requestMatchers("/actuator/**").permitAll()
.anyRequest().permitAll()
);
@@ -51,7 +51,7 @@ spring:
# JWT 설정
jwt:
secret: ${JWT_SECRET:kt-event-marketing-secret-key-for-development-only-change-in-production}
secret: ${JWT_SECRET:dev-jwt-secret-key-for-development-only}
expiration: ${JWT_EXPIRATION:86400000}
# 서버 설정
@@ -73,3 +73,19 @@ logging:
max-file-size: 10MB
max-history: 7
total-size-cap: 100MB
# Actuator
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
base-path: /actuator
endpoint:
health:
show-details: always
show-components: always
health:
livenessState:
enabled: true
readinessState:
enabled: true