crowdsec integration on npm plus #991
-
hi again :D i just inserted crowdsec in the npm plus config: services:
npmplus:
container_name: npmplus
image: zoeyvid/npmplus
restart: always
network_mode: host
volumes:
- "/portainer/Files/AppData/Config/Nginx-Proxy/data:/data"
# - "/var/www:/var/www" # optional, if you want to use it as webserver for html/php
environment:
- TZ=Europe/Rome # set timezone, required
crowdsec:
container_name: crowdsec
image: crowdsecurity/crowdsec
restart: always
network_mode: bridge
ports:
- "127.0.0.1:7422:7422"
- "127.0.0.1:8080:8080"
environment:
- "TZ=Europe/Rome"
- "COLLECTIONS=ZoeyVid/npmplus"
volumes:
- "/opt/crowdsec/conf:/etc/crowdsec"
- "/opt/crowdsec/data:/var/lib/crowdsec/data"
- "/portainer/Files/AppData/Config/Nginx-Proxy:/opt/npm/nginx:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"` this is the configuration, is ok? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
i forgot to enable and create the key, now should work but i have another question and if i put a websites or services like portainer behind niginx how many failed login attemps before ban? and i should configure something on portainer or websites to work with crowdsec? |
Beta Was this translation helpful? Give feedback.
NPMplus only executes the ban if crowdsec says it should, if you want to ban something please see the crowdsec docs