mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
Merge branch 'main' into dev
This commit is contained in:
commit
92e08c3662
5 changed files with 13 additions and 26 deletions
6
install/config/crowdsec/acquis.d/appsec.yaml
Normal file
6
install/config/crowdsec/acquis.d/appsec.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
listen_addr: 0.0.0.0:7422
|
||||||
|
appsec_config: crowdsecurity/appsec-default
|
||||||
|
name: myAppSecComponent
|
||||||
|
source: appsec
|
||||||
|
labels:
|
||||||
|
type: appsec
|
5
install/config/crowdsec/acquis.d/traefik.yaml
Normal file
5
install/config/crowdsec/acquis.d/traefik.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
poll_without_inotify: false
|
||||||
|
filenames:
|
||||||
|
- /var/log/traefik/*.log
|
||||||
|
labels:
|
||||||
|
type: traefik
|
|
@ -1,18 +0,0 @@
|
||||||
filenames:
|
|
||||||
- /var/log/auth.log
|
|
||||||
- /var/log/syslog
|
|
||||||
labels:
|
|
||||||
type: syslog
|
|
||||||
---
|
|
||||||
poll_without_inotify: false
|
|
||||||
filenames:
|
|
||||||
- /var/log/traefik/*.log
|
|
||||||
labels:
|
|
||||||
type: traefik
|
|
||||||
---
|
|
||||||
listen_addr: 0.0.0.0:7422
|
|
||||||
appsec_config: crowdsecurity/appsec-default
|
|
||||||
name: myAppSecComponent
|
|
||||||
source: appsec
|
|
||||||
labels:
|
|
||||||
type: appsec
|
|
|
@ -7,7 +7,6 @@ services:
|
||||||
COLLECTIONS: crowdsecurity/traefik crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-generic-rules
|
COLLECTIONS: crowdsecurity/traefik crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-generic-rules
|
||||||
ENROLL_INSTANCE_NAME: "pangolin-crowdsec"
|
ENROLL_INSTANCE_NAME: "pangolin-crowdsec"
|
||||||
PARSERS: crowdsecurity/whitelists
|
PARSERS: crowdsecurity/whitelists
|
||||||
ACQUIRE_FILES: "/var/log/traefik/*.log"
|
|
||||||
ENROLL_TAGS: docker
|
ENROLL_TAGS: docker
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "cscli", "capi", "status"]
|
test: ["CMD", "cscli", "capi", "status"]
|
||||||
|
@ -18,13 +17,8 @@ services:
|
||||||
- ./config/crowdsec:/etc/crowdsec # crowdsec config
|
- ./config/crowdsec:/etc/crowdsec # crowdsec config
|
||||||
- ./config/crowdsec/db:/var/lib/crowdsec/data # crowdsec db
|
- ./config/crowdsec/db:/var/lib/crowdsec/data # crowdsec db
|
||||||
# log bind mounts into crowdsec
|
# log bind mounts into crowdsec
|
||||||
- ./config/crowdsec_logs/auth.log:/var/log/auth.log:ro # auth.log
|
|
||||||
- ./config/crowdsec_logs/syslog:/var/log/syslog:ro # syslog
|
|
||||||
- ./config/crowdsec_logs:/var/log # crowdsec logs
|
|
||||||
- ./config/traefik/logs:/var/log/traefik # traefik logs
|
- ./config/traefik/logs:/var/log/traefik # traefik logs
|
||||||
ports:
|
ports:
|
||||||
- 6060:6060 # metrics endpoint for prometheus
|
- 6060:6060 # metrics endpoint for prometheus
|
||||||
expose:
|
|
||||||
- 6060 # metrics endpoint for prometheus
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: -t # Add test config flag to verify configuration
|
command: -t # Add test config flag to verify configuration
|
|
@ -25,7 +25,7 @@ func installCrowdsec(config Config) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
os.MkdirAll("config/crowdsec/db", 0755)
|
os.MkdirAll("config/crowdsec/db", 0755)
|
||||||
os.MkdirAll("config/crowdsec_logs/syslog", 0755)
|
os.MkdirAll("config/crowdsec/acquis.d", 0755)
|
||||||
os.MkdirAll("config/traefik/logs", 0755)
|
os.MkdirAll("config/traefik/logs", 0755)
|
||||||
|
|
||||||
if err := copyDockerService("config/crowdsec/docker-compose.yml", "docker-compose.yml", "crowdsec"); err != nil {
|
if err := copyDockerService("config/crowdsec/docker-compose.yml", "docker-compose.yml", "crowdsec"); err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue