generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.yml
68 lines (61 loc) · 1.81 KB
/
application.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
info.app:
name: HMPPS Person Integration API
version: 1.0
spring:
application:
name: hmpps-person-integration-api
codec:
max-in-memory-size: 10MB
jackson:
date-format: "yyyy-MM-dd'T'HH:mm:ssZ"
serialization:
write-dates-as-timestamps: false
write-dates-with-context-time-zone: true
write-dates-with-zone-id: false
time-zone: "Europe/London"
security:
oauth2:
resourceserver:
jwt:
jwk-set-uri: ${hmpps-auth.url}/.well-known/jwks.json
client:
provider:
hmpps-auth:
token-uri: ${hmpps-auth.url}/oauth/token
registration:
hmpps-person-integration-api:
provider: hmpps-auth
client-id: ${system.client.id}
client-secret: ${system.client.secret}
authorization-grant-type: client_credentials
scope: read
server:
port: 8080
servlet:
context-path: /
forward-headers-strategy: native
tomcat:
remoteip:
remote-ip-header: x-forwarded-for
protocol-header: x-forwarded-proto
internal-proxies: 10\.\d{1,3}\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3}|169\.254\.\d{1,3}\.\d{1,3}|127\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.1[6-9]{1}\.\d{1,3}\.\d{1,3}|172\.2[0-9]{1}\.\d{1,3}\.\d{1,3}|172\.3[0-1]{1}\.\d{1,3}\.\d{1,3}|0:0:0:0:0:0:0:1|::1|100\.6[4-9]\.\d{1,3}\.\d{1,3}|100\.[7-9][0-9]{1}\.\d{1,3}\.\d{1,3}|100\.1[0-1][0-9]{1}\.\d{1,3}\.\d{1,3}|100\.12[0-7]\.\d{1,3}\.\d{1,3}
shutdown: graceful
error:
include-message: always
management:
endpoints:
web:
base-path: /
exposure:
include: 'info, health'
endpoint:
health:
cache:
time-to-live: 2000ms
show-components: always
show-details: always
probes:
enabled: true
info:
cache:
time-to-live: 2000ms