-
Notifications
You must be signed in to change notification settings - Fork 1
/
tci-gateway-prod.yml
75 lines (65 loc) · 1.71 KB
/
tci-gateway-prod.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
configuration:
projectName: tci-gateway
server:
port: 8001
management:
security:
enabled: false
endpoints:
web:
exposure:
include: "*"
spring:
cloud:
gateway:
routes:
- id: tci-webhook
uri: lb://tci-webhook
predicates:
- Path=/api/webhook/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- id: tci-projects
uri: lb://tci-projects
predicates:
- Path=/api/projects/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- id: tci-commands
uri: lb://tci-commands
predicates:
- Path=/api/commands/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- id: tci-notifications
uri: lb://tci-notifications
predicates:
- Path=/api/notifications/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- id: tci-logger-builds
uri: lb://tci-logger
predicates:
- Path=/api/builds/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- id: tci-logger-steps
uri: lb://tci-logger
predicates:
- Path=/api/steps/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
discovery:
locator:
enabled: true
eureka:
instance:
metadataMap:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
server:
enabled: true
client:
serviceUrl:
defaultZone: http://travelci-eureka:8000/eureka/
registerWithEureka: true