integration-service/src/main/resources/application.yaml

52 lines
1.2 KiB
YAML

spring:
profiles:
active: @activeProfile@
datasource:
url: jdbc:h2:mem:layered
jpa:
defer-datasource-initialization: true
springdoc:
api-docs:
path: /api-docs
management:
endpoints:
web:
exposure:
include: health
server:
port: 8091
servlet:
context-path: /integration-service
# ============================
# External Integrations
# ============================
ext:
opr:
base-url: http://localhost:8083/opr-rest-api # opr-rest-api 주소
ingest-path: /ext/samsara/inspections/ingest
internal-token: ${OPR_INTERNAL_TOKEN}
hcm:
base-url: http://localhost:8081/hcm-rest-api
internal-token: ${HCM_INTERNAL_TOKEN}
acc:
base-url: http://localhost:8084/acc-rest-api
internal-token: ${ACC_INTERNAL_TOKEN}
samsara:
base-url: https://api.samsara.com
api-token: ${SAMSARA_API_TOKEN} # 반드시 env 로
timeout:
connect-ms: 5000
read-ms: 10000
jobs:
dvir:
cron: "0 */10 * * * *" # 10분
# ============================
# logging
# ============================
logging:
file:
name: logs/integration-service.log
level:
root: INFO
com.goi.integration: INFO