-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProxyfile
55 lines (53 loc) · 1.58 KB
/
Proxyfile
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
version: v1
name: Proxy
annotations:
# Globally enables or disables rate limiting.
# - If this setting is disabled, no rate limiting will be applied.
# - If this setting is enabled, each path can enable or disable this behavior.
proxy.conf/rate-limiting-enabled: true
# Globally enables or disables request playback.
# - If this setting is disabled, no requests will be replayed.
# - If this setting is enabled, each path can enable or disable this behavior.
proxy.conf/replay-requests-enabled: true
# A header that uniquely identifies each incoming http request.
proxy.conf/http-request-id-header: "X-Request-Id"
# Dump the application stack trace if/when unexpected server errors occur.
proxy.conf/stack-trace-enabled: true
spec:
server:
port: 5000
replay:
scheme: http
host: localhost
port: 8000
pathRewriteSettings:
strategy: suppress
methodRewriteSettings:
strategy: rewrite
method: POST
suppressedHeaders:
- name: "Authorization"
- name: "X-Request-Id"
- name: "X-Replay"
rules:
- host: example.com
paths:
- path: /people
pathType: Prefix
portNumber: 4000
- path: /friends
pathType: Exact
portNumber: 8000
- host: viacep.com.br
paths:
- path: /
pathType: Prefix
tls: true
enableReplay: true
- host: jsonplaceholder.typicode.com
paths:
- path: /posts
pathType: Prefix
tls: true
enableRateLimit: true
enableReplay: true