-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathapplication.conf
249 lines (197 loc) · 5.6 KB
/
application.conf
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!--(if type=="FRONTEND")-->
include "common.conf"
appName="$!APP_NAME!$"
application.router=prod.Routes
application.global=uk.gov.hmrc.$!APP_PACKAGE_NAME!$.FrontendGlobal
play.filters.headers.contentSecurityPolicy= "default-src 'self' 'unsafe-inline' localhost:9000 localhost:9032 www.google-analytics.com data:"
# Play Modules
# ~~~~
# Additional play modules can be added here
play.modules.enabled += "com.kenshoo.play.metrics.PlayModule"
<!--(if MONGO)-->
play.modules.enabled += "play.modules.reactivemongo.ReactiveMongoHmrcModule"
<!--(end)-->
# Global request handler
# ~~~~
# Set to the object handler for migrated 2.3 services
play.http.requestHandler = "play.api.http.GlobalSettingsHttpRequestHandler"
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
# Not set here so that MDTP frontends share the same secret key in the local environment
# (see common.conf in frontend-bootstrap).
# In server environments the secret comes from app-config-common
# play.crypto.secret="$!SECRET_KEY!$"
microservice {
metrics {
graphite {
host = localhost
port = 2003
prefix = play.${appName}.
enabled = true
}
}
services {
}
}
metrics {
name = ${appName}
rateUnit = SECONDS
durationUnit = SECONDS
showSamples = true
jvm = true
enabled = true
}
auditing {
enabled=true
traceRequests=true
consumer {
baseUri {
host = localhost
port = 8100
}
}
}
google-analytics {
token=N/A
host=auto
}
assets {
version = "2.149.0"
version = ${?ASSETS_FRONTEND_VERSION}
url = "http://localhost:9032/assets/"
}
contact-frontend {
host = "http://localhost:9250"
}
<!--(end)-->
<!--(if type=="MICROSERVICE" or type=="STUB")-->
# This is the main configuration file for the application.
# ~~~~~
appName=$!APP_NAME!$
# Play Modules
# ~~~~
# Additional play modules can be added here
play.modules.enabled += "com.kenshoo.play.metrics.PlayModule"
<!--(if MONGO)-->
play.modules.enabled += "play.modules.reactivemongo.ReactiveMongoHmrcModule"
<!--(end)-->
# Global request handler
# ~~~~
# Set to the object handler for migrated 2.3 services
play.http.requestHandler = "play.api.http.GlobalSettingsHttpRequestHandler"
# Session Timeout
# ~~~~
# The default session timeout for the app is 15 minutes (900seconds).
# Updating this is the responsibility of the app - it must issue a new cookie with each request or the session will
# timeout 15 minutes after login (regardless of user activity).
# session.maxAge=900
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
play.crypto.secret="$!SECRET_KEY!$"
# Session configuration
# ~~~~~
application.session.httpOnly=false
application.session.secure=false
# The application languages
# ~~~~~
application.langs="en"
# Global object class
# ~~~~~
# Define the Global object class for this application.
# Default to Global in the root package.
<!--(if type=="STUB")-->
application.global=uk.gov.hmrc.$!APP_PACKAGE_NAME!$.StubGlobal
<!--(else)-->
application.global=uk.gov.hmrc.$!APP_PACKAGE_NAME!$.MicroserviceGlobal
<!--(end)-->
# Router
# ~~~~~
# Define the Router object to use for this application.
# This router will be looked up first when the application is starting up,
# so make sure this is the entry point.
# Furthermore, it's assumed your route file is named properly.
# So for an application router like `my.application.Router`,
# you may need to define a router file `conf/my.application.routes`.
# Default to Routes in the root package (and conf/routes)
# !!!WARNING!!! DO NOT CHANGE THIS ROUTER
application.router=prod.Routes
# Controller
# ~~~~~
# By default all controllers will have authorisation, logging and
# auditing (transaction monitoring) enabled.
# The below controllers are the default exceptions to this rule.
controllers {
# 300 is the default, you may need to change this according to your needs
confidenceLevel = 300
com.kenshoo.play.metrics.MetricsController = {
needsAuth = false
needsLogging = false
needsAuditing = false
}
uk.gov.hmrc.$!APP_PACKAGE_NAME!$.controllers.MicroserviceHelloWorld = {
needsAuth = false
needsLogging = false
needsAuditing = false
}
}
# Evolutions
# ~~~~~
# You can disable evolutions if needed
# evolutionplugin=disabled
# Logger
# ~~~~~
# You can also configure logback (http://logback.qos.ch/), by providing a logger.xml file in the conf directory .
# Root logger:
logger.root=ERROR
# Logger used by the framework:
logger.play=INFO
# Logger provided to your application:
logger.application=DEBUG
# Metrics plugin settings - graphite reporting is configured on a per env basis
metrics {
name = ${appName}
rateUnit = SECONDS
durationUnit = SECONDS
showSamples = true
jvm = true
enabled = true
}
# Microservice specific config
auditing {
enabled=true
traceRequests=true
consumer {
baseUri {
host = localhost
port = 8100
}
}
}
<!--(if MONGO)-->
mongodb {
uri = "mongodb://localhost:27017/$!APP_NAME!$"
}
<!--(end)-->
microservice {
metrics {
graphite {
host = graphite
port = 2003
prefix = play.${appName}.
enabled = false
}
}
services {
<!--(if type=="MICROSERVICE")-->
auth {
host=localhost
port=8500
}
<!--(end)-->
}
}
<!--(end)-->