Skip to content

Docker Label Setup Static and Dynamic Config #13

@wjbridge

Description

@wjbridge

Hi,

I am trying to get this plugin to work using docker labels. I am not having any success to get it working. For testing, I am trying to replace 'en' to 'es' in the page but cannot get this to work. My goal is to use this to change the theme.

Static Config:

command:
--pilot.token=$TOKEN
--experimental.plugins.theme_changer.modulename=github.com/traefik/plugin-rewritebody
--experimental.plugins.theme_changer.version=v0.3.1

Dynamic Config:

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.sonarr-rtr.entrypoints=web"
      - "traefik.http.routers.sonarr-rtr.rule=Host(`sonarr.$BASE_HOST`)"+
      - "traefik.http.routers.sonarr-rtr.service=sonarr-svc"
      - "traefik.http.middlewares.rewrite_theme.plugin.theme_changer.rewrites[0].regex=en"
      - "traefik.http.middlewares.rewrite_theme.plugin.theme_changer.rewrites[0].replacement=es"
      - "traefik.http.routers.sonarr-rtr.middlewares=rewrite_theme"
      - "traefik.http.services.sonarr-svc.loadbalancer.server.port=8989"

Thank you for any help / direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions