Clean docker-compose, update function name

This commit is contained in:
MathieuHa
2022-10-03 01:01:41 +02:00
parent 9cf4827768
commit 952fcd844f
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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: