Files
IIPBS/config/fastreg/cms-service.yml
T
2025-04-03 10:57:02 +09:00

102 lines
3.3 KiB
YAML

eureka: # Eureka Server 정보로 실제 서비스 시점에는 이부분은 지워야 한다.
instance:
lease-renewal-interval-in-seconds: 5 # 서비스 갱신 주기 (기본 30초)
lease-expiration-duration-in-seconds: 10 # 서비스 종료 판단 시간 (기본 90초)
metadata-map:
startup: ${random.int} # 인스턴스 ID가 고유하도록 보장
client:
registry-fetch-interval-seconds: 5 # 레지스트리 정보 갱신 주기 (기본 30초)
spring:
datasource:
url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227
username: msaportal
password: msaportal
driver-class-name: org.postgresql.Driver
hikari:
minimum-idle: 5 # 너무 많은 유휴 연결 방지
maximum-pool-size: 20 # DB 부하와 병목 최소화
idle-timeout: 30000 # 30초 후 유휴 연결 제거
max-lifetime: 1800000 # 30분 후 커넥션 재생성
connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초)
data-source-properties:
cachePrepStmts: true
prepStmtCacheSize: 512
prepStmtCacheSqlLimit: 4096
useServerPrepStmts: true
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
generate-ddl: true
hibernate:
ddl-auto: none
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
globally_quoted_identifiers: false
default_batch_fetch_size: 1000
show-sql: true
defer-datasource-initialization: true
servlet:
multipart:
enabled: true
max-file-size: -1
max-request-size: -1
cloud:
stream:
function:
definition: atflMngEntity;busConsumer # 첨부파일 entity 정보 업데이트 하기 위한 이벤트에 대한 consumer function & springcloudbus consumer function
bindings:
busConsumer-in-0:
destination: ${spring.cloud.bus.destination}
atflMngEntity-in-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트
destination: atfl-mng-entity.topic # queue name
group: atfl-mng
atflMngEntity-out-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트
destination: atfl-mng-entity.topic # queue name
group: atfl-mng
sql:
init:
mode: always
platform: postgresql
app:
file:
storage:
path: ${user.home}/egovframe-msa-edu/files/cms
allowed-extensions: jpg,jpeg,gif,png,pdf,doc,docx,xls,xlsx,ppt,pptx,txt
max-file-size: 104857600 # 100MB
temp-file-retention: 7
info:
app:
name: CMS Service
description: 컨텐츠 관리 기능을 제공
java:
version: ${java.version}
spring:
framework:
version: ${spring-framework.version}
boot:
version: ${spring-boot.version}
# Swagger 설정
springdoc:
swagger-ui:
path: /swagger-ui.html
groups-order: DESC
operations-sorter: method
disable-swagger-default-url: true
api-docs:
path: /v3/api-docs
show-actuator: true
default-consumes-media-type: application/json
default-produces-media-type: application/json
paths-to-match: /api/** # Actuator 제외하고 문서화할 경로만 포함
logging:
level:
root: INFO
org.egovframe: DEBUG
org.hibernate.SQL: DEBUG
org.hibernate.type.descriptor.sql.BasicBinder: TRACE