105 lines
2.4 KiB
YAML
105 lines
2.4 KiB
YAML
server:
|
|
port: 4011
|
|
forward-headers-strategy: framework
|
|
|
|
spring:
|
|
application:
|
|
name: notihub-server
|
|
|
|
jpa:
|
|
properties:
|
|
hibernate:
|
|
jdbc:
|
|
batch_size: 1_000
|
|
order_inserts: true
|
|
order_updates: true
|
|
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:
|
|
reservation-send:
|
|
cron: "0 */5 * * * *"
|
|
bulk-send:
|
|
fixed-delay-ms: 10000
|
|
batch-size: 500
|
|
sending-stale-minutes: 30
|
|
result-poll:
|
|
initial-delay-ms: 10000
|
|
max-attempts: 0
|
|
max-delay-ms: 30000
|
|
recover-days: 3
|
|
recover-page-size: 1000
|
|
recover-cron: "0 */5 * * * *"
|
|
|
|
sms:
|
|
result-sync:
|
|
fixed-delay-ms: 10000
|
|
batch-size: 1000
|
|
|
|
auth:
|
|
apikey:
|
|
key: "4B726963-4E6F74696669636174696F6E-487562-4E6F7469487562"
|
|
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:
|
|
- 211.254.145.130
|
|
|
|
security:
|
|
enabled: true
|
|
public-paths: # 인증 없이 열어둘 URL
|
|
- /v3/api-docs/**
|
|
- /swagger-ui.html
|
|
- /swagger-ui/**
|
|
- /ping
|
|
- /internal/apikey/**
|
|
- /body-image/**
|
|
|
|
swagger:
|
|
enabled: true
|
|
allowed-ips:
|
|
- 211.254.145.130
|
|
title: "KRI Notice Hub 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(초 분 시 일 월 요일)
|
|
|
|
qr:
|
|
public-base-url: https://short-url.kric.com/api/v1/qr
|
|
|
|
web:
|
|
enabled: true # 공통 Web 구성 사용 여부 (기본 true)
|
|
redis:
|
|
enabled: false # RedisQueueHelper 사용 시 true
|
|
scheduling:
|
|
enabled: true # @Scheduled 사용 시 true
|