🎉 Initial commit: CrowdSec notification service
All checks were successful
🚀 Docker Build and Push / build-and-push (push) Successful in 48s
All checks were successful
🚀 Docker Build and Push / build-and-push (push) Successful in 48s
This commit is contained in:
51
README.md
Normal file
51
README.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# CrowdSec Notify
|
||||
|
||||
Service de notification intelligent pour CrowdSec qui regroupe les alertes par IP.
|
||||
|
||||
## Fonctionnalités
|
||||
|
||||
- 📊 Regroupe les alertes par IP (évite les doublons)
|
||||
- 🌍 Affiche le nom complet du pays
|
||||
- 🔗 Inclut un lien WHOIS pour chaque IP
|
||||
- 📱 Envoie les notifications via Apprise (Telegram)
|
||||
|
||||
## Déploiement
|
||||
|
||||
L'image Docker est automatiquement construite et poussée sur `gitea.killinger.fr/services/crowdsec-notify:latest`
|
||||
|
||||
### Variables d'environnement
|
||||
|
||||
| Variable | Description | Défaut |
|
||||
|----------|-------------|--------|
|
||||
| `APPRISE_URL` | URL du endpoint Apprise | `http://192.168.1.118:8000/notify/telegram_alerts` |
|
||||
|
||||
### Docker Run
|
||||
|
||||
```bash
|
||||
docker run -d \
|
||||
--name crowdsec-notify \
|
||||
--restart unless-stopped \
|
||||
-p 5000:5000 \
|
||||
gitea.killinger.fr/services/crowdsec-notify:latest
|
||||
```
|
||||
|
||||
## Configuration CrowdSec
|
||||
|
||||
Dans `/etc/crowdsec/notifications/http.yaml` :
|
||||
|
||||
```yaml
|
||||
type: http
|
||||
name: apprise_alert
|
||||
group_wait: 5m
|
||||
group_threshold: 10
|
||||
format: |
|
||||
{{ . | toJson }}
|
||||
url: http://crowdsec-notify:5000/crowdsec
|
||||
method: POST
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
## Auteur
|
||||
|
||||
Maxime Killinger
|
||||
Reference in New Issue
Block a user