-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapplication.yml
128 lines (121 loc) · 4.29 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This file contains shared properties across all environments; it is always loaded by Spring
# See https://github.com/department-of-veterans-affairs/abd-vro/wiki/Configuration-settings#vros-use-of-spring-profiles
management:
endpoints.web:
exposure.include: "*"
endpoint:
health:
show-details: always
probes:
enabled: true
group:
liveness.include: livenessState
readiness.include: readinessState, db
metrics:
enabled: true
distribution:
percentiles.http.server.requests: 0.5, 0.90, 0.95, 0.99, 0.999
percentiles-histogram.http.server.requests: true
sla.http.server.requests: 10ms, 50ms
slo.http.server.requests: 10ms, 50ms
tags:
group: starter
service: example
region: "${POD_REGION:local}"
stack: "${CLUSTER:dev}"
ns: "${NAMESPACE:example}"
pod: "${POD_ID:docker}"
web.server.request.autotime.enabled: true
server.port: 8061
server:
ssl:
enabled: false
port: 8060
maxHttpHeaderSize: 48000
session:
timeout: 60
connection:
timeout: 60000
servlet:
session:
timeout: 120000
# Needed to handle Swagger error: https://stackoverflow.com/questions/70906081/springboot-swagger3-failed-to-load-remote-configuration
# Explanation: https://codetinkering.com/spring-forwarded-headers-example/
# and https://tomgregory.com/spring-boot-behind-load-balancer-using-x-forwarded-headers/
# https://stackoverflow.com/questions/68318269/spring-server-forward-headers-strategy-native-vs-framework
# https://springdoc.org/faq.html#_how_can_i_deploy_springdoc_openapi_ui_behind_a_reverse_proxy
use-forward-headers: true
forward-headers-strategy: framework
spring:
application:
name: "vro-api"
profiles:
# See https://github.com/department-of-veterans-affairs/abd-vro/wiki/Configuration-settings#vros-use-of-spring-profiles
active: ${ENV:default}
# Define Sprint Profile Groups with group names corresponding to the value of $ENV
group:
# Configure profile group so that application-nonprod.yml is loaded, along with application-$ENV.yml
local: nonprod
# Remaining profiles are for deployment to LHDI's EKS environments
# Configure profile group so that application-nonprod.yml and application-k8s.yml is loaded,
# along with application-$ENV.yml
dev: nonprod,k8s
qa: nonprod,k8s
sandbox: nonprod,k8s
# For prod, only load application-prod.yml and application-k8s.yml
prod: k8s
# For prod-test, only load application-prod-test.yml and application-k8s.yml
prod-test: k8s
servlet:
multipart:
maxFileSize: 25MB
maxRequestSize: 25MB
enabled: true
session:
timeout: 120000
resources:
add-mappings: false
http:
encoding:
force: true
# Set the context-path. WebFlux calls it base-path
# https://stackoverflow.com/questions/49196368/context-path-with-webflux
# Kubernetes rewrites the url to use `/`
spring.webflux.base-path: /
springdoc:
writer-with-default-pretty-printer: true
show-actuator: true
# Useful diagnostics: https://docs.bmc.com/docs/ars2002/troubleshooting-issues-when-using-swagger-as-a-remedy-rest-api-client-941865631.html
swagger-ui:
operations-sorter: method
tagsSorter: alpha
# Redirects http.../swaggerui to http.../webjars/swagger-ui/index.html
path: swaggerui
disable-swagger-default-url: true
# Populate API dropdown on the upper-right of Swagger UI
urls:
- name: 0. Gateway API
# API defined for this API Gateway
url: /abd-vro/v3/api-docs
- name: App API
# API defined for the VRO Java-base App
url: /vro-app/v3/api-docs
- name: Contention Classification API
# Use the route defined under spring.cloud.gateway below
url: /contention-classification/openapi.json
log4j2:
formatMsgNoLookups: true
vro:
openapi:
info:
title: "Automated Benefits Delivery (ABD): Virtual Regional Office (VRO) API"
description: "To improve benefit delivery to Veterans"
version: "3.0.0"
contact:
name: Premal Shah
email: "[email protected]"
license:
name: CCO 1.0
url: "https://github.com/department-of-veterans-affairs/abd-vro/blob/master/LICENSE.md"
servers:
- url: ${STARTER_OPENAPI_SERVERURL:/}