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.

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"

(dynamic)/middleware.yml

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.

(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