-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkong-2.8.yaml
69 lines (68 loc) · 1.56 KB
/
kong-2.8.yaml
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
---
_format_version: "2.1"
# _transform: true
services:
- connect_timeout: 60000
host: httpbin
name: httpbin-service
path: /
port: 8080
protocol: http
read_timeout: 60000
retries: 5
write_timeout: 60000
routes:
- name: route21
paths:
- /path21
path_handling: v0
preserve_host: false
protocols:
- http
- https
regex_priority: 0
strip_path: true
https_redirect_status_code: 426
request_buffering: true
response_buffering: true
- name: route22
paths:
- /path22
path_handling: v0
preserve_host: false
protocols:
- http
- https
regex_priority: 0
strip_path: true
https_redirect_status_code: 426
request_buffering: true
response_buffering: true
plugins:
- name: prometheus-extended
enabled: true
- name: prometheus
config:
per_consumer: true
# following metrics are only available from Kong 3.0 onwards
#bandwidth_metrics: true
#latency_metrics: true
#status_code_metrics: true
#upstream_health_metrics: true
enabled: true
protocols:
- grpc
- grpcs
- http
- https
- name: key-auth
config:
key_names:
- apikey
consumers:
- username: eric
keyauth_credentials:
- key: ericskey
- username: idle-service-user
keyauth_credentials:
- key: idlekey