Skip to content

Instantly share code, notes, and snippets.

@LeoVerto
Created October 4, 2022 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoVerto/6c7b6819ec6a70b592128747aa14581a to your computer and use it in GitHub Desktop.
Save LeoVerto/6c7b6819ec6a70b592128747aa14581a to your computer and use it in GitHub Desktop.
CrowdSec alert to signal-cli-rest-api
type: http
name: signal-rest
log_level: info
group_wait: 30s
format: |
{
"number": "SENDER_NUMMER",
"recipients": [ "RECIPIENT_NUMMER" ],
"message": "CrowdSec Notification:\n{{range . -}}{{$alert := . -}}{{range .Decisions -}}{{.Value}} will get {{.Type}} for next {{.Duration}} for triggering {{.Scenario}}. https://www.shodan.io/host/{{.Value}}\n{{end -}}{{end -}}"
}
url: http://signal-rest:8080/v2/send
method: POST
headers:
Content-Type: application/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment