-
Notifications
You must be signed in to change notification settings - Fork 34
/
kong.yml
41 lines (39 loc) · 1007 Bytes
/
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
_format_version: "2.1"
_transform: true
services:
- name: readme-example
url: https://mockbin.org/request
routes:
- name: index
paths: [ '/' ]
strip_path: false
protocols: ['http']
- name: version
paths: [ '/version' ]
strip_path: false
protocols: ['http']
- name: healthz
paths: [ '/healthz' ]
strip_path: false
protocols: ['http']
plugins:
- name: path-prefix
config:
path_prefix: /mock
forwarded_header: true
- name: test
url: https://mockbin.org/request
routes:
- name: nested
paths: [ '/service-with-plugin-route/foobar' ]
strip_path: false
protocols: ['http']
- name: base
paths: [ '/service-with-plugin-route' ]
strip_path: false
protocols: ['http']
plugins:
- name: path-prefix
config:
path_prefix: '/service-with-plugin-route'
forwarded_header: true