Loading traefik/README.md +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,11 @@ You can add this to your `.env` file: echo "TRAEFIK_PiLOT_TOKEN=$MY_TOKEN" >> .env ``` Once you have registered your instance, you can provide use plugins by setting the `TRAEFIK_PLUGIN` variable: ```bash echo 'TRAEFIK_PLUGIN=",fail2ban@file"' >> .env ``` ## Add a Router/Service using the file provider To create a new router and/or a new service, you can use the file provider: Loading traefik/docker-compose.traefik.yml +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ services: - '--metrics.prometheus' # Misc - '--api.insecure' - '--entrypoints.websecure.http.middlewares=compress@file,fail2ban@file' - '--entrypoints.websecure.http.middlewares=compress@file${TRAEFIK_PLUGINS}' - '--experimental.plugins.fail2ban.modulename=github.com/tommoulard/fail2ban' - '--experimental.plugins.fail2ban.version=v0.6.0' - '--global.checknewversion=false' Loading Loading
traefik/README.md +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,11 @@ You can add this to your `.env` file: echo "TRAEFIK_PiLOT_TOKEN=$MY_TOKEN" >> .env ``` Once you have registered your instance, you can provide use plugins by setting the `TRAEFIK_PLUGIN` variable: ```bash echo 'TRAEFIK_PLUGIN=",fail2ban@file"' >> .env ``` ## Add a Router/Service using the file provider To create a new router and/or a new service, you can use the file provider: Loading
traefik/docker-compose.traefik.yml +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ services: - '--metrics.prometheus' # Misc - '--api.insecure' - '--entrypoints.websecure.http.middlewares=compress@file,fail2ban@file' - '--entrypoints.websecure.http.middlewares=compress@file${TRAEFIK_PLUGINS}' - '--experimental.plugins.fail2ban.modulename=github.com/tommoulard/fail2ban' - '--experimental.plugins.fail2ban.version=v0.6.0' - '--global.checknewversion=false' Loading