운영환경처리
This commit is contained in:
@@ -16,7 +16,6 @@ spring:
|
|||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://192.168.2.127:15432/kamco_training_db
|
url: jdbc:postgresql://192.168.2.127:15432/kamco_training_db
|
||||||
# url: jdbc:postgresql://localhost:15432/kamco_training_db
|
|
||||||
username: kamco_training_user
|
username: kamco_training_user
|
||||||
password: kamco_training_user_2025_!@#
|
password: kamco_training_user_2025_!@#
|
||||||
hikari:
|
hikari:
|
||||||
@@ -47,9 +46,6 @@ springdoc:
|
|||||||
member:
|
member:
|
||||||
init_password: kamco1234!
|
init_password: kamco1234!
|
||||||
|
|
||||||
swagger:
|
|
||||||
local-port: 9080
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
sync-root-dir: /app/original-images/
|
sync-root-dir: /app/original-images/
|
||||||
sync-tmp-dir: ${file.sync-root-dir}tmp/
|
sync-tmp-dir: ${file.sync-root-dir}tmp/
|
||||||
@@ -71,10 +67,3 @@ train:
|
|||||||
shmSize: 16g
|
shmSize: 16g
|
||||||
ipcHost: true
|
ipcHost: true
|
||||||
|
|
||||||
# CORS 설정 (개발 환경)
|
|
||||||
cors:
|
|
||||||
allowed-origins:
|
|
||||||
- https://kamco.training-dev.gs.dabeeo.com
|
|
||||||
- http://localhost:3002
|
|
||||||
- http://192.168.2.109:3002
|
|
||||||
- http://192.168.2.109:7100
|
|
||||||
|
|||||||
@@ -4,19 +4,16 @@ spring:
|
|||||||
on-profile: prod
|
on-profile: prod
|
||||||
|
|
||||||
jpa:
|
jpa:
|
||||||
show-sql: true
|
show-sql: false # 운영 환경에서는 성능을 위해 비활성화
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: validate
|
ddl-auto: validate
|
||||||
properties:
|
properties:
|
||||||
hibernate:
|
hibernate:
|
||||||
default_batch_fetch_size: 100 # ✅ 성능 - N+1 쿼리 방지
|
default_batch_fetch_size: 100 # N+1 쿼리 방지
|
||||||
order_updates: true # ✅ 성능 - 업데이트 순서 정렬로 데드락 방지
|
order_updates: true # 업데이트 순서 정렬로 데드락 방지
|
||||||
use_sql_comments: true # ⚠️ 선택 - SQL에 주석 추가 (디버깅용)
|
|
||||||
format_sql: true # ⚠️ 선택 - SQL 포맷팅 (가독성)
|
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://kamco-cd-train-db:5432/kamco_training_db
|
url: jdbc:postgresql://kamco-cd-train-db:5432/kamco_training_db
|
||||||
# url: jdbc:postgresql://localhost:15432/kamco_training_db
|
|
||||||
username: kamco_training_user
|
username: kamco_training_user
|
||||||
password: kamco_training_user_2025_!@#
|
password: kamco_training_user_2025_!@#
|
||||||
hikari:
|
hikari:
|
||||||
@@ -31,13 +28,14 @@ spring:
|
|||||||
default-timeout: 300 # 5분 트랜잭션 타임아웃
|
default-timeout: 300 # 5분 트랜잭션 타임아웃
|
||||||
|
|
||||||
jwt:
|
jwt:
|
||||||
secret: "kamco_token_dev_dfc6446d-68fc-4eba-a2ff-c80a14a0bf3a"
|
# ⚠️ 운영 환경에서는 반드시 별도의 강력한 시크릿 키를 사용하세요
|
||||||
|
secret: "kamco_token_prod_CHANGE_THIS_TO_SECURE_SECRET_KEY"
|
||||||
access-token-validity-in-ms: 86400000 # 1일
|
access-token-validity-in-ms: 86400000 # 1일
|
||||||
refresh-token-validity-in-ms: 604800000 # 7일
|
refresh-token-validity-in-ms: 604800000 # 7일
|
||||||
|
|
||||||
token:
|
token:
|
||||||
refresh-cookie-name: kamco # 개발용 쿠키 이름
|
refresh-cookie-name: kamco
|
||||||
refresh-cookie-secure: false # 로컬 http 테스트면 false
|
refresh-cookie-secure: true # HTTPS 환경에서 필수
|
||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
@@ -46,9 +44,6 @@ springdoc:
|
|||||||
member:
|
member:
|
||||||
init_password: kamco1234!
|
init_password: kamco1234!
|
||||||
|
|
||||||
swagger:
|
|
||||||
local-port: 9080
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
sync-root-dir: /app/original-images/
|
sync-root-dir: /app/original-images/
|
||||||
sync-tmp-dir: ${file.sync-root-dir}tmp/
|
sync-tmp-dir: ${file.sync-root-dir}tmp/
|
||||||
@@ -70,8 +65,5 @@ train:
|
|||||||
shmSize: 16g
|
shmSize: 16g
|
||||||
ipcHost: true
|
ipcHost: true
|
||||||
|
|
||||||
# CORS 설정 (운영 환경)
|
|
||||||
cors:
|
|
||||||
allowed-origins:
|
|
||||||
- https://train-kamco.com
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ spring:
|
|||||||
datasource:
|
datasource:
|
||||||
driver-class-name: org.postgresql.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
hikari:
|
hikari:
|
||||||
jdbc:
|
|
||||||
time_zone: UTC
|
|
||||||
batch_size: 50
|
|
||||||
# 권장 설정
|
|
||||||
minimum-idle: 2
|
minimum-idle: 2
|
||||||
maximum-pool-size: 2
|
maximum-pool-size: 2
|
||||||
connection-timeout: 20000
|
connection-timeout: 20000
|
||||||
@@ -21,18 +17,11 @@ spring:
|
|||||||
max-lifetime: 1800000
|
max-lifetime: 1800000
|
||||||
leak-detection-threshold: 60000
|
leak-detection-threshold: 60000
|
||||||
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
password:
|
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update # 스키마 자동 관리 활성화
|
ddl-auto: update # 스키마 자동 관리 활성화
|
||||||
properties:
|
properties:
|
||||||
hibernate:
|
hibernate:
|
||||||
hbm2ddl:
|
|
||||||
auto: update
|
|
||||||
javax:
|
javax:
|
||||||
persistence:
|
persistence:
|
||||||
validation:
|
validation:
|
||||||
@@ -55,11 +44,8 @@ logging:
|
|||||||
security: INFO
|
security: INFO
|
||||||
root: INFO
|
root: INFO
|
||||||
|
|
||||||
# CORS 설정
|
|
||||||
cors:
|
|
||||||
allowed-origins:
|
|
||||||
- http://localhost:3000
|
|
||||||
- http://localhost:3002
|
|
||||||
# actuator
|
# actuator
|
||||||
management:
|
management:
|
||||||
health:
|
health:
|
||||||
@@ -83,20 +69,3 @@ management:
|
|||||||
exposure:
|
exposure:
|
||||||
include:
|
include:
|
||||||
- "health"
|
- "health"
|
||||||
|
|
||||||
# GeoJSON 파일 모니터링 설정
|
|
||||||
geojson:
|
|
||||||
monitor:
|
|
||||||
watch-directory: ~/geojson/upload
|
|
||||||
processed-directory: ~/geojson/processed
|
|
||||||
error-directory: ~/geojson/error
|
|
||||||
temp-directory: /tmp/geojson_extract
|
|
||||||
cron-expression: "0/30 * * * * *" # 매 30초마다 실행
|
|
||||||
supported-extensions:
|
|
||||||
- zip
|
|
||||||
- tar
|
|
||||||
- tar.gz
|
|
||||||
- tgz
|
|
||||||
max-file-size: 104857600 # 100MB
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ spring:
|
|||||||
max-lifetime: 1800000
|
max-lifetime: 1800000
|
||||||
leak-detection-threshold: 60000
|
leak-detection-threshold: 60000
|
||||||
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
password:
|
|
||||||
|
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: none # 테스트 환경에서는 DDL 자동 생성/수정 비활성화
|
ddl-auto: none # 테스트 환경에서는 DDL 자동 생성/수정 비활성화
|
||||||
@@ -69,20 +63,6 @@ management:
|
|||||||
include:
|
include:
|
||||||
- "health"
|
- "health"
|
||||||
|
|
||||||
geojson:
|
|
||||||
monitor:
|
|
||||||
watch-directory: ~/geojson/upload
|
|
||||||
processed-directory: ~/geojson/processed
|
|
||||||
error-directory: ~/geojson/error
|
|
||||||
temp-directory: /tmp/geojson_extract
|
|
||||||
cron-expression: "0/30 * * * * *"
|
|
||||||
supported-extensions:
|
|
||||||
- zip
|
|
||||||
- tar
|
|
||||||
- tar.gz
|
|
||||||
- tgz
|
|
||||||
max-file-size: 104857600
|
|
||||||
|
|
||||||
jwt:
|
jwt:
|
||||||
secret: "test_secret_key_for_testing_purposes_only"
|
secret: "test_secret_key_for_testing_purposes_only"
|
||||||
access-token-validity-in-ms: 86400000
|
access-token-validity-in-ms: 86400000
|
||||||
|
|||||||
Reference in New Issue
Block a user