-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamic.yml
More file actions
106 lines (91 loc) · 2.4 KB
/
Copy pathdynamic.yml
File metadata and controls
106 lines (91 loc) · 2.4 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
http:
middlewares:
cors:
headers:
accessControlAllowMethods: ["GET", "POST", "PATCH", "PUT", "DELETE", "OPTIONS"]
accessControlAllowOriginList: ["*"]
accessControlAllowHeaders: ["Origin", "Accept", "Content-Type", "X-Requested-With", "Authorization"]
accessControlMaxAge: 100
addVaryHeader: true
api-strip-prefix:
stripPrefix:
prefixes: ["/api"]
routers:
communities:
rule: "PathPrefix(`/api/communities`)"
service: "community-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
threads:
rule: "PathPrefix(`/api/threads`)"
service: "thread-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
comments:
rule: "PathPrefix(`/api/comments`)"
service: "comment-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
votes:
rule: "PathPrefix(`/api/votes`)"
service: "vote-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
search:
rule: "PathPrefix(`/api/search`)"
service: "search-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
popular:
rule: "PathPrefix(`/api/popular`)"
service: "popular-service"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
grpc-gateway:
rule: "PathPrefix(`/api`)"
service: "gprc-gateway"
entryPoints: ["web"]
middlewares:
- "cors"
- "api-strip-prefix"
services:
community-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/communities"
thread-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/threads"
comment-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/comments"
vote-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/votes"
search-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/search"
popular-service:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080/popular"
gprc-gateway:
loadBalancer:
servers:
- url: "http://grpc-gateway:8080"