-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
90 lines (90 loc) · 2 KB
/
config.json
File metadata and controls
90 lines (90 loc) · 2 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
{
"version": 1,
"jwt": {
"secret": "test-secret-that-is-at-least-32-characters-long-for-security",
"issuer": "test",
"audience": "test",
"required_claims": [
"sub"
]
},
"rate_limit": {
"strategy": "PerIP",
"requests_per_window": 100,
"window_duration": 60,
"burst_allowance": 20,
"window_type": "SlidingWindow",
"enable_redis": false,
"redis_key_prefix": "Rusta_rl"
},
"routers": [
{
"host": "http://localhost",
"port": 3000,
"protocol": "http",
"load_balancing_strategy": "round_robin",
"external_path": "/api/identity/register/v3",
"internal_path": "/api/identity/register",
"methods": [
"POST",
"GET"
],
"auth_required": false
},
{
"host": "https://google.com",
"port": 443,
"protocol": "http",
"load_balancing_strategy": "round_robin",
"external_path": "/identity/register/v2",
"internal_path": "/",
"methods": [
"POST",
"GET"
],
"auth_required": false
},
{
"host": "https://http.cat",
"port": 443,
"protocol": "http",
"load_balancing_strategy": "round_robin",
"external_path": "/cats/{id}",
"internal_path": "/{id}",
"methods": [
"GET"
],
"auth_required": false
},
{
"host": "https://http.cat",
"port": 443,
"protocol": "http",
"load_balancing_strategy": "round_robin",
"external_path": "/protected/cats/{id}",
"internal_path": "/{id}",
"methods": [
"GET"
],
"auth_required": true
},
{
"backends": [
{
"host": "ws://localhost",
"port": 3000,
"weight": 1,
"health_check_path": null
}
],
"protocol": "websocket",
"load_balancing_strategy": "round_robin",
"external_path": "/ws/chat",
"internal_path": "/ws",
"methods": [
"GET"
],
"auth_required": false
}
]
}