-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathapplication.yml
More file actions
311 lines (287 loc) · 10.2 KB
/
application.yml
File metadata and controls
311 lines (287 loc) · 10.2 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
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
logging:
level:
ROOT: TRACE
apiml:
# The `apiml` node contains API Mediation Layer specific configuration
service:
# The `apiml.service` node contains information required by any APIML service
id: gateway # Service ID of this service. It is fixed for APIML API Gateway
hostname: localhost # Hostname that is advertised in Eureka. Contains the actual hostname of the instance.
# Default is valid only for localhost
port: 10010 # Default port name for gateway service
ipAddress: 127.0.0.1 # IP address that is advertised in Eureka. Default is valid only for localhost
scheme: https # "https" or "http"
preferIpAddress: false
allowEncodedSlashes: true
discoveryServiceUrls: https://localhost:10011/eureka/
ignoredHeadersWhenCorsEnabled: Access-Control-Request-Method,Access-Control-Request-Headers,Origin
additionalRegistration: # List of additional Apiml Discovery Services metadata to register with
loadBalancer:
distribute: false
gateway:
# The `apiml.gateway` node contains gateway-service only configuration
hostname: ${apiml.service.hostname} # The hostname for other services to access the gateway. For example Catalog uses
# for transforming the URLs in DVIPA mode.
# In Zowe, this is the same as apiml.service.hostname. Zowe has one Gateway
# and is all run from single host.
# In Brightside, this holds the DVIPA address and is overridden in PARMLIB to work
# properly.
timeoutMillis: 30000 # Timeout for connection to the services
security:
personalAccessToken:
enabled: true
oidc:
enabled: false
clientId:
clientSecret:
registry:
identityMapperUrl: http://localhost:8542/certificate/dn
identityMapperUser: validUserForMap
jwks:
uri:
filterChainConfiguration: new
allowTokenRefresh: true
jwtInitializerTimeout: 5
ssl:
verifySslCertificatesOfServices: true
x509:
externalMapperUrl: http://localhost:8542/certificate/x509/map
externalMapperUser: validUserForMap
auth:
provider: dummy
zosmf:
serviceId: zosmf # Replace me with the correct z/OSMF service id
jwtAutoconfiguration: jwt
saf:
provider: rest
urls:
authenticate: https://localhost:10013/zss/saf/authenticate
verify: https://localhost:10013/zss/saf/verify
#For testing forwarded headers with (un)trusted proxies
test:
proxyAddress: 6.6.6.6
trustedProxiesPattern: 6\.6\.6\.6
spring:
config:
useLegacyProcessing: true
profiles:
include: diag
application:
name: ${apiml.service.id}
cloud:
compatibilityVerifier:
enabled: false # Should be removed when upgrade to Spring Cloud 3.x
client:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
mvc:
throw-exception-if-no-handler-found: false # to suppress NoHandlerFoundException: No handler found for GET /error, we already provide error handling for requests
favicon:
enabled: false
output:
ansi:
enabled: detect
main:
allow-bean-definition-overriding: true
allow-circular-references: true
banner-mode: ${apiml.banner:"off"}
server:
address: ${apiml.service.ipAddress}
port: ${apiml.service.port}
internal:
port: 10017
enabled: true
ssl:
keyStore: ../keystore/localhost/localhost.keystore.p12
keyStorePassword: password
keyPassword: password
keyAlias: localhost
trustStore: ../keystore/localhost/localhost.truststore.p12
trustStorePassword: password
keyStoreType: PKCS12
trustStoreType: PKCS12
clientAuth: want
ssl:
enabled: true
clientAuth: want
protocol: TLSv1.2
enabled-protocols: TLSv1.2
ciphers: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
keyStoreType: PKCS12
trustStoreType: PKCS12
keyStore: ../keystore/localhost/localhost.keystore.p12
keyStorePassword: password
keyPassword: password
keyAlias: localhost
trustStore: ../keystore/localhost/localhost.truststore.p12
trustStorePassword: password
max-http-header-size: 40000
zuul:
sslHostnameValidationEnabled: false
addProxyHeaders: true
traceRequestBody: true
ignoreSecurityHeaders: false
includeDebugHeader: false
sensitiveHeaders: Expires,Date
ignoredPatterns:
- /ws/**
- /sse/**
host:
connectTimeoutMillis: ${apiml.gateway.timeoutMillis}
socketTimeoutMillis: ${apiml.gateway.timeoutMillis}
forceOriginalQueryStringEncoding: true
retryable: true
ribbon:
ConnectTimeout: ${apiml.gateway.timeoutMillis}
ReadTimeout: ${apiml.gateway.timeoutMillis}
ConnectionManagerTimeout: ${apiml.gateway.timeoutMillis}
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 5
retryableStatusCodes: 503
OkToRetryOnAllOperations: false
GZipPayload: false # this stops Gateway from deflating gzip responses from services
client:
name: testClient
http:
connection:
timeout: ${apiml.gateway.timeoutMillis}
socket:
timeout: ${apiml.gateway.timeoutMillis}
hystrix:
command:
default:
fallback:
enabled: false
circuitBreaker:
enabled: false
execution:
timeout:
enabled: false
isolation:
thread:
timeoutInMilliseconds: ${apiml.gateway.timeoutMillis}
strategy: SEMAPHORE
semaphore:
maxConcurrentRequests: 100000
management:
endpoints:
web:
base-path: /application
exposure:
include: health,info
health:
defaults:
enabled: false
endpoint:
health:
showDetails: always
eureka:
instance:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
#ports are computed in code
preferIpAddress: ${apiml.service.preferIpAddress}
homePageUrl: ${apiml.service.scheme}://${apiml.gateway.hostname}:${apiml.service.port}/
statusPageUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/info
healthCheckUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/health
secureHealthCheckUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/health
metadata-map:
apiml:
catalog:
tile:
id: apimediationlayer
title: API Mediation Layer API
description: The API Mediation Layer for z/OS internal API services. The API Mediation Layer provides a single point of access to mainframe REST APIs and offers enterprise cloud-like features such as high-availability, scalability, dynamic API discovery, and documentation.
version: 1.0.0
routes:
api_v1:
gatewayUrl: /api/v1
serviceUrl: /gateway
apiInfo:
- apiId: zowe.apiml.gateway
gatewayUrl: api/v1
swaggerUrl: https://${apiml.service.hostname}:${apiml.service.port}/api-doc
documentationUrl: https://zowe.github.io/docs-site/
service:
title: API Gateway
description: API Gateway service to route requests to services registered in the API Mediation Layer and provides an API for mainframe security.
client:
fetchRegistry: false
registerWithEureka: false
region: default
serviceUrl:
defaultZone: ${apiml.service.discoveryServiceUrls}
healthcheck:
enabled: true
---
spring:
profiles: debug
mvc:
throw-exception-if-no-handler-found: true
management:
endpoints:
web:
base-path: /application
exposure:
include: health,info,routes,loggers
logging:
level:
ROOT: INFO
org.zowe.apiml: DEBUG
org.springframework: INFO
org.apache: INFO
org.apache.http: DEBUG
com.netflix: INFO
org.hibernate: INFO
org.springframework.web.servlet.PageNotFound: WARN
org.ehcache: INFO
org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter: INFO
---
spring:
profiles: diag
management:
endpoints:
web:
base-path: /application
exposure:
include: "*"
zuul.debug.request: true
---
spring:
profiles: dev
profiles.include:
- debug
- diag
logbackServiceName: ZWEAGW1
---
spring:
profiles: attlsServer
server:
attlsServer:
enabled: true
ssl:
enabled: false
apiml:
service:
corsEnabled: true
---
spring:
profiles: attlsClient
server:
attlsClient:
enabled: true
apiml:
service:
scheme: http
nonSecurePortEnabled: true
securePortEnabled: false
discoveryServiceUrls: http://localhost:10011/eureka/
eureka:
instance:
metadata-map:
apiml:
apiInfo:
- apiId: zowe.apiml.gateway
gatewayUrl: api/v1
swaggerUrl: http://${apiml.service.hostname}:${apiml.service.port}/api-doc
documentationUrl: https://zowe.github.io/docs-site/