-
Notifications
You must be signed in to change notification settings - Fork 1
/
kong.yml
51 lines (46 loc) · 1.31 KB
/
kong.yml
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
# ------------------------------------------------------------------------------
# This is an example file to get you started with using
# declarative configuration in Kong.
# ------------------------------------------------------------------------------
# Metadata fields start with an underscore (_)
# Fields that do not start with an underscore represent Kong entities and attributes
# _format_version is mandatory,
# it specifies the minimum version of Kong that supports the format
_format_version: "1.1"
# Each Kong entity (core entity or custom entity introduced by a plugin)
# can be listed in the top-level as an array of objects:
services:
- name: insert-data
connect_timeout: 60000
url: https://us-central1-project-test-270001.cloudfunctions.net/function_insert_data
path: /insert-data
routes:
- name: insert-data-route
methods:
- POST
headers:
function:
- insert-data
paths:
- /
protocols:
- http
- https
- name: get-json
connect_timeout: 60000
url: https://us-central1-project-test-270001.cloudfunctions.net/function_convert_xml_to_json
path: /get-json
routes:
- name: get-json-route
headers:
function:
- get-json
paths:
- /
protocols:
- http
- https
consumers:
- username: my-user
keyauth_credentials:
- key: my-key