-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.traefik.yml
41 lines (38 loc) · 857 Bytes
/
.traefik.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
displayName: Check request headers plugin
type: middleware
import: github.com/dkijkuit/checkheadersplugin
summary: "Checks the incoming request for specific headers and their values to be present and matching the configuration."
testData:
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