-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.traefik.yml
More file actions
29 lines (24 loc) · 862 Bytes
/
.traefik.yml
File metadata and controls
29 lines (24 loc) · 862 Bytes
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
# The name of your plugin as displayed in the Traefik Pilot web UI.
displayName: Regex Redirect With Status Code
# For now, `middleware` is the only type available.
type: middleware
# The import path of your plugin.
import: github.com/evolves-fr/traefik-plugin-redirect
# A brief description of what your plugin is doing.
summary: Redirect is a Traefik plugin to redirect a list with status code.
# Medias associated to the plugin (optional)
iconPath: icon.png
#bannerPath: banner.png
# Configuration data for your plugin.
# This is mandatory,
# and Traefik Pilot will try to execute the plugin with the data you provide as part of its startup validity tests.
testData:
debug: false
redirects:
- regex: /redirect
replacement: /ok
statusCode: 302
- regex: ^/gone$
statusCode: 410
- regex: ^/not-found$
statusCode: 404