mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-20 11:09:00 +02:00
Clean docker-compose, update function name
This commit is contained in:
+2
-2
@@ -273,7 +273,7 @@ func handleNoStreamCache(a *Bouncer, rw http.ResponseWriter, req *http.Request,
|
||||
setDecision(a, remoteHost, true, int64(duration.Seconds()))
|
||||
}
|
||||
|
||||
func wait_stream() {
|
||||
func waitStream() {
|
||||
logger("Start Wait Stream")
|
||||
sec := rand.Int63n(30)
|
||||
logger(fmt.Sprintf("Sec=%v", sec))
|
||||
@@ -285,7 +285,7 @@ func handleStreamCache(a *Bouncer) {
|
||||
logger(fmt.Sprintf("Start handleStreamCache with health=%v", a.crowdsecStreamHealthy))
|
||||
// TODO clean properly on exit.
|
||||
|
||||
wait_stream()
|
||||
waitStream()
|
||||
// wait random number of sec
|
||||
var rawQuery string
|
||||
var path string
|
||||
|
||||
@@ -26,7 +26,7 @@ services:
|
||||
- "traefik.http.middlewares.crowdsec.plugin.bouncer.crowdseccapipwd=Q5pgN8bRNInHGdx6QCksdPOJVLeLQ7ipJntSeuP3r8088zXzRVs4G8liXAKfI1k6"
|
||||
- "traefik.http.middlewares.crowdsec.plugin.bouncer.crowdseccapiscenarios=crowdsecurity/http-backdoors-attempts,baudneo/zoneminder-bf"
|
||||
ports:
|
||||
- 8000:80
|
||||
- 80:80
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- crowdsec
|
||||
@@ -72,9 +72,9 @@ services:
|
||||
BOUNCER_KEY_TRAEFIK_2: 44c36dac5c4140af9f06f397508e82c7
|
||||
volumes:
|
||||
- ./acquis.yaml:/etc/crowdsec/acquis.yaml:ro
|
||||
- logs:/var/log/traefik:ro
|
||||
- crowdsec-db:/var/lib/crowdsec/data/
|
||||
- crowdsec-config:/etc/crowdsec/
|
||||
- logs-local:/var/log/traefik:ro
|
||||
- crowdsec-db-local:/var/lib/crowdsec/data/
|
||||
- crowdsec-config-local:/etc/crowdsec/
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user