forked from darkweak/souin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.traefik.yml
44 lines (43 loc) · 995 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
42
43
44
displayName: Souin
type: middleware
import: github.com/Redocly/souin/plugins/traefik
summary: 'Souin is a powerfull cache system as fast as Varnish but easier to configure'
# Refer to https://github.com/Redocly/souin/blob/master/configuration/configuration.sample.yml for full configuration
testData:
api:
prometheus: {}
souin: {}
default_cache:
headers:
- Authorization
- Content-Type
regex:
exclude: 'ARegexHere'
ttl: 10s
log_level: debug
urls:
'domain.com/testing':
ttl: 2s
headers:
- Authorization
'mysubdomain.domain.com':
ttl: 50s
headers:
- Authorization
- 'Content-Type'
ykeys:
The_First_Test:
headers:
Content-Type: '.+'
The_Second_Test:
url: 'the/second/.+'
The_Third_Test:
The_Fourth_Test:
surrogate_keys:
The_First_Test:
headers:
Content-Type: '.+'
The_Second_Test:
url: 'the/second/.+'
The_Third_Test:
The_Fourth_Test: