Unverified Commit 1691eff5 authored by Tom Moulard's avatar Tom Moulard
Browse files

traefik: disabling plugins by default

parent 9c6a165f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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:

+1 −1
Original line number Diff line number Diff line
@@ -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'