diff options
Diffstat (limited to 'contrib/krakend.json')
-rw-r--r-- | contrib/krakend.json | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/contrib/krakend.json b/contrib/krakend.json new file mode 100644 index 0000000..1f89340 --- /dev/null +++ b/contrib/krakend.json | |||
@@ -0,0 +1,90 @@ | |||
1 | { | ||
2 | "$schema": "https://www.krakend.io/schema/v3.json", | ||
3 | "version": 3, | ||
4 | "name": "Checkin.bot API", | ||
5 | "extra_config": { | ||
6 | "telemetry/opencensus": { | ||
7 | "sample_rate": 100, | ||
8 | "reporting_period": 0, | ||
9 | "exporters": { | ||
10 | "prometheus": { | ||
11 | "port": 9091, | ||
12 | "namespace": "krakend", | ||
13 | "tag_host": false, | ||
14 | "tag_path": true, | ||
15 | "tag_method": true, | ||
16 | "tag_statuscode": false | ||
17 | } | ||
18 | } | ||
19 | }, | ||
20 | "telemetry/metrics": { | ||
21 | "collection_time": "60s", | ||
22 | "proxy_disabled": false, | ||
23 | "router_disabled": false, | ||
24 | "backend_disabled": false, | ||
25 | "endpoint_disabled": false, | ||
26 | "listen_address": ":8090" | ||
27 | } | ||
28 | }, | ||
29 | "timeout": "3000ms", | ||
30 | "cache_ttl": "300s", | ||
31 | "output_encoding": "json", | ||
32 | "debug_endpoint": true, | ||
33 | "endpoints": [ | ||
34 | { | ||
35 | "endpoint": "/checkinbot/webhook", | ||
36 | "method": "POST", | ||
37 | "output_encoding": "json", | ||
38 | "backend": [ | ||
39 | { | ||
40 | "url_pattern": "/checkinbot/webhook", | ||
41 | "encoding": "json", | ||
42 | "sd": "static", | ||
43 | "method": "POST", | ||
44 | "host": [ | ||
45 | "http://checkinbot:8080" | ||
46 | ], | ||
47 | "disable_host_sanitize": false | ||
48 | } | ||
49 | ] | ||
50 | }, | ||
51 | { | ||
52 | "endpoint": "/checkinbot/healthcheck", | ||
53 | "method": "GET", | ||
54 | "output_encoding": "string", | ||
55 | "backend": [ | ||
56 | { | ||
57 | "url_pattern": "/checkinbot/healthcheck", | ||
58 | "encoding": "string", | ||
59 | "sd": "static", | ||
60 | "method": "GET", | ||
61 | "host": [ | ||
62 | "http://checkinbot:8080" | ||
63 | ], | ||
64 | "disable_host_sanitize": false | ||
65 | } | ||
66 | ] | ||
67 | }, | ||
68 | { | ||
69 | "endpoint": "/checkinbot/fedi_login_callback", | ||
70 | "method": "GET", | ||
71 | "output_encoding": "string", | ||
72 | "backend": [ | ||
73 | { | ||
74 | "url_pattern": "/checkinbot/fedi_login_callback", | ||
75 | "encoding": "string", | ||
76 | "sd": "static", | ||
77 | "method": "GET", | ||
78 | "disable_host_sanitize": false, | ||
79 | "host": [ | ||
80 | "http://checkinbot:8080" | ||
81 | ] | ||
82 | } | ||
83 | ], | ||
84 | "input_query_strings": [ | ||
85 | "code", | ||
86 | "state" | ||
87 | ] | ||
88 | } | ||
89 | ] | ||
90 | } \ No newline at end of file | ||