-
Notifications
You must be signed in to change notification settings - Fork 3
/
dynamic-dev-config.yaml
55 lines (52 loc) · 1.21 KB
/
dynamic-dev-config.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
# Dynamic configuration
http:
routers:
my-router:
rule: Path(`/whoami`)
service: service-whoami
entryPoints:
- http
middlewares:
- checkheaders
services:
service-whoami:
loadBalancer:
servers:
- url: http://127.0.0.1:5000
middlewares:
checkheaders:
plugin:
dev:
headers:
- header:
name: "HEADER_1"
matchtype: one
values:
- "VALUE_1"
- "VALUE_99"
- header:
name: "HEADER_2"
matchtype: one
values:
- "VALUE_2"
- header:
name: "HEADER_3"
matchtype: one
values:
- "VALUE_3"
required: false
- header:
name: "HEADER_4"
matchtype: all
values:
- "LUE_4"
- "VALUE_5"
contains: true
required: true
- header:
name: "HEADER_4"
matchtype: one
values:
- "VALUE_\\d"
regex: true
required: true