You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VMIS-interface/src/main/resources/application-prd.yml

97 lines
3.7 KiB
YAML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

server:
port: 8080
spring:
# DataSource 설정 - MariaDB
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: jdbc:mariadb://211.119.124.117:53306/vips?characterEncoding=UTF-8&allowMultiQueries=true
username: vips
password: xit5811807
hikari:
# 커넥션 풀 크기 설정 (4코어 32GB 서버 기준)
# 동시에 사용할 수 있는 최대 커넥션 수
# 권장값: (코어수 × 2) + (동시사용자 × 0.1) = (4 × 2) + (300 × 0.1) = 38 → 40
maximum-pool-size: 40
# 풀에서 유지할 최소 유휴 커넥션 수
# 권장값: maximum-pool-size의 25% (40 × 0.25 = 10)
minimum-idle: 10
# 커넥션을 얻기 위한 최대 대기 시간 (밀리초)
# 권장값: 30초 - 네트워크 지연이나 데이터베이스 부하 시 적절한 대기 시간
connection-timeout: 30000
# 커넥션 유효성 검사 타임아웃 (밀리초)
validation-timeout: 60000
# 커넥션의 최대 생명 시간 (밀리초)
# 권장값: 30분 - 데이터베이스 연결이 너무 오래 유지되지 않도록 제한
max-lifetime: 1800000
# 유휴 커넥션을 제거하기 위한 최소 대기 시간 (밀리초)
# 권장값: 10분 - 메모리 절약과 커넥션 재사용의 균형점
idle-timeout: 600000
# auto-commit을 false로 설정하여 명시적 트랜잭션 관리
auto-commit: false
# MyBatis 설정
mybatis:
# MyBatis 전역 설정 파일 위치
config-location: classpath:mybatis/mybatis-config.xml
# Mapper XML 파일 위치 (DbType 변수 사용)
mapper-locations: classpath:mybatis/mapper/**/*_${Globals.DbType}.xml
# 타입 별칭 패키지 (하위 패키지 자동 스캔)
type-aliases-package: com.vmis.interfaceapp.model
# 로그 설정 - 운영(PRD) 환경
logging:
config: classpath:logback-spring.xml
file:
path: d:/data/VMIS-interface/logs
name: vmis-interface
logback:
rollingpolicy:
max-file-size: 10MB
max-history: 90
level:
root: WARN
com.vmis.interfaceapp: INFO
org.springframework: WARN
org.springframework.web: INFO
# 인터페이스 및 연계 설정 - 운영(PRD) 환경
# 주의: 실제 운영 키/호스트는 배포 환경 변수나 외부 설정(Secret)로 주입 권장
vmis:
system:
infoSysId: "41-345" # 운영 실제값으로 교체
sigunguCode: "" # 운영 실제값
departmentCode: "" # 운영 실제값
gpki:
enabled: "Y"
useSign: true
charset: "UTF-8"
certServerId: "SVR5640020001" # 운영 인증서 ID로 교체
targetServerId: "SVR1500000015"
ldap: true
gpkiLicPath: "src/GPKI/conf"
certFilePath: "src/GPKI/certs"
envCertFilePathName: "src/GPKI/certs/SVR5640020001_env.cer"
envPrivateKeyFilePathName: "src/GPKI/certs/SVR5640020001_env.key"
envPrivateKeyPasswd: "*sbm204221"
sigCertFilePathName: "src/GPKI/certs/SVR5640020001_sig.cer"
sigPrivateKeyFilePathName: "src/GPKI/certs/SVR5640020001_sig.key"
sigPrivateKeyPasswd: "*sbm204221"
gov:
scheme: "http"
host: "10.188.225.25:29001" # 예시: 운영 행정망 (명세에 맞춰 수정)
basePath: "/piss/api/molit"
connectTimeoutMillis: 5000
readTimeoutMillis: 10000
services:
basic:
path: "/SignguCarBassMatterInqireService"
cntcInfoCode: "AC1_FD11_01"
apiKey: "05e8d748fb366a0831dce71a32424460746a72d591cf483ccc130534dd51e394"
cvmisApikey: "014F9215-B6D9A3B6-4CED5225-68408C46"
ledger:
path: "/SignguCarLedgerFrmbkService"
cntcInfoCode: "AC1_FD11_02"
apiKey: "1beeb01857c2e7e9b41c002b007ccb9754d9c272f66d4bb64fc45b302c69e529"
cvmisApikey: "63DF159B-7B9C64C5-86CCB15C-5F93E750"