-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatewayserver.yml
46 lines (42 loc) · 1.05 KB
/
gatewayserver.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
server:
port: ${GATEWAY_SERVER_PORT:5555}
spring:
cloud:
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins:
- "http://localhost:4200"
- "http://localhost:4000"
allowedHeaders:
- Content-Type
- Authorization
allowedMethods:
- GET
- POST
- PUT
routes:
- id: webapiservice
uri: lb://webapiservice
predicates:
- Path=/api/web/**
filters:
- StripPrefix=2
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 21000
ribbon:
ConnectTimeout: 5000
ReadTimeout: 5000
eureka:
instance:
# to allow SBA access this service
metadata-map:
user.name: "actuator"
user.password: "{cipher}a4b40ea05df6dd7eb0d2d0504958585359f410d49441742accded740a20096e7"
# expose actuator for SBA
management:
endpoints:
web.exposure.include: health,refresh
endpoint:
health:
show-details: never