-
Notifications
You must be signed in to change notification settings - Fork 12
Examples
Ethan Leisinger edited this page Apr 16, 2022
·
6 revisions
Add the following to your static traefik config.
As of 2022-04-15: you will need to use localPlugins rather than plugins. More information: https://traefik.io/blog/using-private-plugins-in-traefik-proxy-2-5/
pilot:
token = "xxxx" # Update to your pilot token
experimental:
plugins:
rewritebody:
modulename: "github.com/packruler/rewrite-body"
version: "v0.4.1"http:
middlewares:
sonarr-theme:
plugin:
rewritebody:
rewrites:
- regex: </head>
replacement: <link rel="stylesheet" type="text/css" href="https://theme-park.dev/css/base/sonarr/{{ env "THEME" }}.css"></head>In the above example you can set the environment variable THEME to the name of the theme you want to use. Update sonarr to match the app base.
http:
middlewares:
theme-headers:
headers:
customRequestHeaders:
accept-encoding: gzip;1.0,deflate;0.5,identity;0.1This is an example of how to set request headers to prioritize supported encoding. Brotli support is technically included but is not reliable yet.