aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/resources/application.yml
blob: 93da259962cfca35025bb4ce4ab94d1a5ace5d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
server:
  port: 9002
  address: 0.0.0.0

spring:
  application:
    name: history
  jackson:
    serialization:
      # needed for serializing objects of type object
      FAIL_ON_EMPTY_BEANS: false
  security:
    oauth2:
      resourceserver:
        jwt:
          jwk-set-uri: ${KEYCLOAK_URL}/realms/${KEYCLOAK_REALM}/protocol/openid-connect/certs #Keycloak Endpoint
  data:
    mongodb:
      database: ${MONGO_DATABASE}
      host: ${MONGO_HOST}
      port: ${MONGO_PORT}
      username: ${MONGO_USERNAME}
      password: ${MONGO_PASSWORD}

history:
  save-interval: 72
  delete-interval: 0 0 * * * *

management:
  endpoints:
    web:
      exposure:
        include: "*"
  info:
    build:
      enabled: true
    env:
      enabled: true
    git:
      enabled: true
    java:
      enabled: true
  tracing:
    enabled: true
    sampling:
      probability: 1.0 # sample every request
  zipkin:
    tracing:
      endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans

logger:
  traceIdHeaderName: "X-Request-Id"
  enabled: true
  excludePaths:
    - "/actuator/**"