-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnare.conf.example
26 lines (23 loc) · 1.13 KB
/
snare.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Set 'listen' to either:
// * An IPv4 address (e.g. "0.0.0.0:8011" listens on all IPv4 interfaces).
// * An IPv6 address (e.g. "[::]:8011" listens on all IPv4 and all IPv6
// interfaces).
listen = "0.0.0.0:8011";
github {
match ".*" {
// For each webhook coming in, this will execute the command:
// /path/to/prps/<owner>/<repo> <event> <path-to-github-json>
// where the file <repo> must be executable. Note that snare guarantees
// that all the '%' substitutions are shell-safe.
cmd = "/path/to/prps/%o/%r %e %j";
// This command will send an email to "[email protected]" when an error
// occurs. The subject will contain the repository owner and repository
// names; the body will contain the full stderr/stdout (you should consider
// carefully whether these have sensitive information or not). In order for
// this to work, you will need to have installed, set-up, and enabled a
// suitable sendmail clone.
errorcmd = "cat %s | mailx -s \"snare error: github.com/%o/%r\" [email protected]";
// The GitHub secret used to sign webhook requests.
secret = "<secret>";
}
}