-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json
115 lines (115 loc) · 2.6 KB
/
config.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
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
107
108
109
110
111
112
113
114
115
{
"version": "1",
"name": "Bifrost api gateway",
"port": 8000,
"in_cluster": false,
"override_service_address": "http://kube-worker1:32344/",
"log_level": "debug",
"service_namespace_prefix_filter": "",
"metrics": {
"enabled": true,
"collection_time": "60s",
"proxy_disabled": false,
"router_disabled": false,
"backend_disabled": false,
"endpoint_disabled": false,
"listen_address": "8090"
},
"downstream_path_prefix": "",
"upstream_path_prefix": "/api",
"endpoints": [
{
"service_name": "downstream-api-1",
"downstream_path_prefix": "/messaging/offers/computeOfferStates",
"handler_type": "event",
"handler_config": {
"topic": "ch.commands.Charisma.Leasing.PublishedLanguage.Commands.LeasingOffer.ComputeOffertNextStatesList"
},
"methods": [
"POST"
]
},
{
"service_name": "downstream-api-2",
"upstream_path_prefix": "/downstream-api-2",
"methods": [
"POST",
"GET"
],
"filters": {
"auth": {
"disabled": false,
"allowed_scopes": [
"LSNG.Api.read_only",
"Notifier.Api.write"
],
"claims_requirement": {
"client_id": "CharismaFinancialServices"
}
},
"rate_limit": {
"limit": 500
}
}
},
{
"service_name": "downstream-api-1",
"upstream_path_prefix": "/api",
"filters": {
"auth": {
"disabled": true,
"allowed_scopes": [
"LSNG.Api.read_only"
]
}
}
},
{
"service_name": "hubs",
"upstream_path_prefix": "/hubs"
},
{
"service_name": "lsng-api",
"filters": {
"auth": {
"allowed_scopes": [
"LSNG.Api.read_only"
]
}
}
}
],
"handlers": {
"event": {
"nats": {
"nats_url": "nats://kube-worker1:31291",
"cluster": "faas-cluster",
"client_id": "GoGatewayClientId2",
"q_group": "GoGateway",
"durable_name": "durable",
"topic_prefix": "LSNG_LIVIU_",
"source": "GoGateway"
}
}
},
"filters": {
"auth": {
"authority": "https://leasing-sso.appservice.online"
},
"cors": {
"allowed_origins": [
"http://localhost:3000",
"https://leasing-app.appservice.online",
"https://lsng.appservice.online"
]
},
"rate_limit": {
"enabled": false,
"limit": 5000
}
},
"opentracing": {
"enabled": true,
"agent": "kube-worker1:31457"
}
}