-
Notifications
You must be signed in to change notification settings - Fork 0
/
kong.yaml
141 lines (141 loc) · 4.63 KB
/
kong.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
_info:
select_tags:
- managed-by-deck
- org-unit-42
services:
- name: svc1
host: mockbin.org
tags:
- team-svc1
routes:
- name: r1
https_redirect_status_code: 301
paths:
- /r1
- name: svc2
host: mockbin.org
routes:
- name: r2
https_redirect_status_code: 301
paths:
- /r2
- name: svc3
host: mockbin.org
port: 80
routes:
- name: r3
https_redirect_status_code: 301
paths:
- /r3
methods:
- GET
upstreams:
- name: upstream1
algorithm: round-robin
targets:
- target: 198.51.100.11:80
- target: 198.51.100.12:80
- target: 198.51.100.13:80
certificates:
- id: 13c562a1-191c-4464-9b18-e5222b46035b
cert: |
-----BEGIN CERTIFICATE-----
MIIC1jCCAb4CCQCt23nwvxSCvjANBgkqhkiG9w0BAQsFADAtMRYwFAYDVQQDDA0q
LmV4YW1wbGUuY29tMRMwEQYDVQQKDAprb25naHEub3JnMB4XDTE4MTIzMTIwMTkw
MVoXDTE5MTIzMTIwMTkwMVowLTEWMBQGA1UEAwwNKi5leGFtcGxlLmNvbTETMBEG
A1UECgwKa29uZ2hxLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AKj/2r1AXo9x+2Csrd0SHbpnzuW+xYqgsd+YA9ZrZNV7SZGSbaZymsRMz8wg5OIU
iUik2GM1749/lYvojLFStBPy9UY/gd++5f3wLp4xHiI+IU2XQ97otX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LCERv0+6Y1
F/t/YSW8cugB3vdV9jHZuosoprz48p92pYP8OdQc70H5hZt53hoYNgYFSd+MU6H1
hJCaXTsiP4IUmBjiwzSp3o1ctP8lWvnyJpAadYdDhaDaAAoaMjCo9cm5OMwc8t8x
hwAPXV2cgWH8fPcT9NLAcwWk
-----END PRIVATE KEY-----
tags:
- cloudops-managed
snis:
- name: demo1.example.com
- name: demo2.example.com
- name: demo3.example.com
plugins:
- name: prometheus
enabled: true
protocols:
- http
- https
consumers:
- username: harry
keyauth_credentials:
- key: iwb6Djkk4HhUlOCmLilDIKh6nZrn90ts
hmacauth_credentials:
- username: hmac-user
secret: yeNZBeqCuk0D3H85VX77Umacf91MwqRo
jwt_secrets:
- algorithm: HS256
key: MKWeR0nu9OAUR9HrjpUG82Hbfz7ZXsIw
secret: 6gkrxTKAraykMSpmnLNEGiEE3Yz8XL6U
basicauth_credentials:
- username: user1
password: this-password-cant-be-changed
acls:
- group: foo-group
- username: yolo
tags:
- internal-user
plugins:
- name: rate-limiting
config:
day: null
fault_tolerant: true
hide_client_headers: false
hour: null
limit_by: consumer
minute: 10
month: null
policy: redis
redis_database: 0
redis_host: redis.common.svc
redis_password: null
redis_port: 6379
redis_timeout: 2000
second: null
year: null
enabled: true
protocols:
- http
- https