Rework variables name, and logic to check IPs with strategy

This commit is contained in:
MathieuHa
2022-11-19 13:27:51 +01:00
parent 6b7f8655ac
commit 73374ccefe
6 changed files with 44 additions and 58 deletions
@@ -2,7 +2,7 @@ version: "3.8"
services:
cloudflare:
image: "traefik:v2.9.1"
image: "traefik:v2.9.4"
container_name: "cloudflare"
command:
# - "--log.level=DEBUG"
@@ -21,7 +21,7 @@ services:
- 8080:8080
traefik:
image: "traefik:v2.9.1"
image: "traefik:v2.9.4"
container_name: "traefik"
command:
# - "--log.level=DEBUG"
@@ -42,7 +42,7 @@ services:
# crowdseclapikey must be uniq to the middleware attached to the service
- "traefik.http.middlewares.crowdsec.plugin.bouncer.crowdseclapikey=40796d93c2958f9e58345514e67740e5"
# Replace 10.0.10.30/32 by your IP range which is "trusted"
- "traefik.http.middlewares.crowdsec.plugin.bouncer.trustedips=10.0.10.30/32"
- "traefik.http.middlewares.crowdsec.plugin.bouncer.clienttrustedips=10.0.50.30/32"
crowdsec: