Files
noti-hub/src/main/resources/application.yml

92 lines
2.3 KiB
YAML

server:
port: 4011
forward-headers-strategy: framework
spring:
application:
name: notihub-server
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
profiles:
# 아무 설정 없을 때 기본으로 쓸 프로파일
default: local
servlet:
multipart:
max-file-size: 20MB
max-request-size: 20MB
logging:
file:
path: ./logs
kri:
api:
pringo:
url: "https://m1090.pg.eventmail01.com/api/event/v2"
apiKey: "5b2e14c5555479ecb6949ee714422b323b191e7491193ad27266851d7496735f"
template-id: "11"
email:
result-poll:
initial-delay-ms: 60000
max-attempts: 0
max-delay-ms: 30000
recover-days: 3
recover-page-size: 1000
auth:
apikey:
key: "4B726963-4E6F7469487562-53657276696365-402531403136"
header-name: "X-API-Key" # API Key 헤더
enabled: true # API Key 인증 허용 여부
service-code: notihub-service
preload-on-startup: true
# 내부 운영용(원하면)
admin-api-enabled: true
admin-allow-ips:
- 127.0.0.1/32
- 0:0:0:0:0:0:0:1
- 211.254.145.130
# apikey 보관 DB(MySQL)
db:
url: jdbc:mysql://db-md87m-kr.vpc-pub-cdb.ntruss.com:3306/kri_common?characterEncoding=UTF-8
username: kriit
password: it#51304
driver-class-name: com.mysql.cj.jdbc.Driver
security:
enabled: true
public-paths: # 인증 없이 열어둘 URL
- /v3/api-docs/**
- /swagger-ui.html
- /swagger-ui/**
- /ping
- /body-image/**
- /internal/apikey/**
swagger:
enabled: true
title: "KRI NotiHub API"
description: "KRI 문자/메일 발송 API"
version: "v1.0.0"
base-package: "com.kri.notihub.server"
body-image:
upload-base-dir: ./upload-file/body-image
temp-expire-hours: 24
temp-cleanup-cron: "0 0 0 * * *" # 매일 00:00(초 분 시 일 월 요일)
common:
web:
enabled: true # 공통 Web 구성 사용 여부 (기본 true)
webmvc:
enabled: true # 공통 Webmvc 구성 사용 여부 (기본 true)
redis:
enabled: false # RedisQueueHelper 사용 시 true
scheduling:
enabled: true # @Scheduled 사용 시 true