Skip to content

Examples

Ethan Leisinger edited this page Apr 16, 2022 · 6 revisions

theme.park Support

traefik.yml

Add the following to your static traefik config.

pilot:
  token = "xxxx" # Update to your pilot token

experimental:
  plugins:
    rewrite-body:
      modulename: "github.com/packruler/rewrite-body"
      version: "v0.5.0"

(dynamic)/middleware.yml

http:
  middlewares:
    sonarr-theme:
      plugin:
        rewrite-body:
          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.

(dynamic)/headers.yml (optional)

http:
  middlewares:
    theme-headers:
      headers:
        customRequestHeaders:
          accept-encoding: gzip;1.0,deflate;0.5,identity;0.1

This is an example of how to set request headers to prioritize supported encoding. Brotli support is technically included but is not reliable yet.

Clone this wiki locally