This repository was archived by the owner on Jun 30, 2025. It is now read-only.
generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapplication.yaml
More file actions
94 lines (86 loc) · 2.8 KB
/
application.yaml
File metadata and controls
94 lines (86 loc) · 2.8 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
server:
port: 4550
management:
endpoint:
health:
show-details: "always"
endpoints:
web:
base-path: /
exposure:
include: health, info, prometheus
#If you use a database then uncomment below lines and update db properties accordingly
spring:
cloud:
azure:
active-directory:
enabled: true
profile:
tenant-id: ${TENANT_ID}
credential:
client-id: ${CLIENT_ID}
client-secret: ${CLIENT_SECRET}
app-id-uri: ${APP_URI}
authorization-clients:
dataManagementApi:
authorization-grant-type: client_credentials
scopes:
- ${DATA_MANAGEMENT_AZ_API}/.default
accountManagementApi:
authorization-grant-type: client_credentials
scopes:
- ${ACCOUNT_MANAGEMENT_AZ_API}/.default
publicationServicesApi:
authorization-grant-type: client_credentials
scopes:
- ${PUBLICATION_SERVICES_AZ_API}/.default
config:
import: "optional:configtree:/mnt/secrets/pip-ss-kv/"
application:
name: PIP Subscription Management
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
username: ${DB_USER}
password: ${DB_PASS}
properties:
charSet: UTF-8
hikari:
minimumIdle: 2
maximumPoolSize: 10
idleTimeout: 10000
poolName: ConnectionPool
maxLifetime: 7200000
connectionTimeout: 30000
jpa:
show-sql: 'false'
properties:
hibernate:
format_sql: 'true'
dialect: org.hibernate.dialect.PostgreSQLDialect
jdbc:
lob:
non_contextual_creation: 'true'
database: POSTGRESQL
hibernate:
# Updated to 'none'. This is the default, and prevents auto updates in production
ddl-auto: ${DB_UPDATE:none}
# This is needed as locally, all tables are in a single schema. Flyway is only enabled on the clusters by default
flyway:
enabled: ${ENABLE_FLYWAY:false}
service-to-service:
data-management: ${DATA_MANAGEMENT_URL:https://pip-data-management.staging.platform.hmcts.net}
account-management: ${ACCOUNT_MANAGEMENT_URL:https://pip-account-management.staging.platform.hmcts.net}
publication-services: ${PUBLICATION_SERVICES_URL:https://pip-publication-services.staging.platform.hmcts.net}
springdoc:
swagger-ui:
path: /swagger-ui/
third-party-api:
courtel: ${COURTEL_API:testCourtelApi}
dbMigration:
# When true, the app will run DB migration on startup.
# Otherwise, it will just check if all migrations have been applied (and fail to start if not).
runOnStartup: ${RUN_DB_MIGRATION_ON_STARTUP:false}
# Used to conditionally enable testing support API
testingSupport:
enableApi: ${ENABLE_TESTING_SUPPORT_API:true}