-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSmileGatewayConfig.yaml
104 lines (97 loc) · 2.23 KB
/
SmileGatewayConfig.yaml
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
log-path: Logs.txt
listeners:
- name: Outside
protocol: "HTTP/1.0"
address:
address: 0.0.0.0
port: 4000
route-config:
clusters:
- user-service
- auth-service
- community-service
- chat-service
custom-filters:
- name: ListenerTestFilter
path: /ApiGateway/CustomFilter.cs
authorization:
type: JWT
login-path: /api/auth/login
logout-path: /api/user/logout
jwt-validator:
valid-audience: http://127.0.0.1:4000
valid-issuer: http://127.0.0.1:4000
secret-key: JWTRefreshTokenHIGHsecuredPasswordVVVp1OH7Xzyr
access-token-validity-in-second: 230400 #64 hours
refresh-token-validity-in-second: 230400 # 64 hours
is-inside: false
disallow-headers:
- trace-id
thread-count: 10
- name: Inside
protocol: "HTTP/1.0"
address:
address: 0.0.0.0
port: 4040
route-config:
clusters:
- user-service
- auth-service
- community-service
- chat-service
- state-service
is-inside: true
disallow-headers:
thread-count: 10
clusters:
- name: auth-service
protocol: http
address:
- address: 34.22.109.45
port: 5000
prefix: /api/auth
custom-filters:
- name: ClusterTestFilter
path: /ApiGateway/ClusterTestFilter.cs
authorization: false
connect-timeout: 1000
- name: user-service
protocol: http
address:
- address: 34.22.109.45
port: 5000
prefix: /api/user
authorization: true
connect-timeout: 1000
- name: community-service
protocol: http
address:
- address: 34.22.109.45
port: 8000
prefix: /api/community
custom-filters:
- name: ClusterTestFilter
path: /ApiGateway/ClusterTestFilter.cs
authorization: true
connect-timeout: 5000
request-timeout: 20000
- name: chat-service
protocol: http
address:
- address: 34.22.109.45
port: 7000
prefix: /api/chat-service
custom-filters:
authorization: false
connect-timeout: 5000
request-timeout: 20000
- name: state-service
protocol: http
address:
- address: 34.22.109.45
port: 9000
prefix: /api/state
custom-filters:
authorization: false
connect-timeout: 5000
request-timeout: 20000