-
Notifications
You must be signed in to change notification settings - Fork 5
/
grpc_app_sample.json
77 lines (77 loc) · 1.67 KB
/
grpc_app_sample.json
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
{
"name": "gRPC Test API (Coprocess + gRPC)",
"api_id": "2",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"expires": "3000-01-02 15:04",
"use_extended_paths": true,
"extended_paths": {
"ignored": [],
"white_list": [],
"black_list": []
}
}
}
},
"proxy": {
"listen_path": "/grpc-api-test/",
"target_url": "http://httpbin.org",
"strip_listen_path": true
},
"custom_middleware": {
"pre": [
{
"name": "MyPreMiddleware",
"require_session": false
}
],
"id_extractor": {
"extract_from": "header",
"extract_with": "value",
"extractor_config": {
"header_name": "Authorization"
}
},
"driver": "grpc"
},
"event_handlers": {
"events": {
"AuthFailure": [
{
"handler_name": "cp_dynamic_handler",
"handler_meta": {
"name": "my_handler"
}
}
]
}
},
"enable_batch_request_support": true,
"use_keyless": true,
"custom_middleware": {
"post": [
{
"name": "MyPostMiddleware",
"require_session": true
}
],
"pre": [
{
"name": "MyPreMiddleware",
"require_session": false
}
],
"driver": "grpc"
}
}