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