Repository navigation
Expand file tree
/
Copy pathgroupsync.example.conf
More file actions
42 lines (35 loc) · 1.74 KB
/
Copy pathgroupsync.example.conf
File metadata and controls
42 lines (35 loc) · 1.74 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* groupsync — pulls per-channel role flags from api.fuelrats.com and authorizes
* them through ChanServ. Load AFTER chanserv/nickserv. Add to services.conf
* alongside the other `module { name = "..." }` blocks.
*/
module
{
name = "groupsync"
/* Base URL of the API's groupsync endpoints (no trailing slash).
* The module calls GET <apiurl>/anope?email=<email> and
* POST <apiurl>/anope/bulk. */
apiurl = "https://api.fuelrats.com"
/* Path to a 0600 file containing ONLY the bearer token (anope.read scope).
* Kept out of the config so the token isn't in restic config snapshots. */
apitokenfile = "/anope/conf/groupsync.token"
/* Optional: max seconds a single API request may take (default 5). */
#apitimeout = 5
/* Optional (Add-on B): emit the `fr_gated` client ModData used by the
* UnrealIRCd `m_rolesync` module to let role-holders into invite-only (+i)
* channels. Leave off until `m_rolesync` is loaded on every IRC server;
* when off, no ModData is sent (default off). */
#rolesync = yes
/* Optional: SASL token login. Path to a 0600 file (readable by the Anope
* user) containing ONLY the secret, at least 32 characters, that the API
* shares to mint one-time SASL PLAIN passwords
* `frk1:<ts>:<hex HMAC-SHA256(secret, "<account>|<ts>")>`. Needs the
* sha256 provider from enc_sha2. Unset (default) = no token login. */
#sasltoken_secretfile = "/anope/conf/sasltoken.secret"
/* Optional: seconds a token is valid either side of its timestamp
* (default 60, capped at 60). */
#sasltoken_maxage = 60
}
/* Exposes NickServ GROUPSYNC <email> (oper/U-lined) — the API's push-trigger
* calls this to re-sync a user without re-login. */
command { service = "NickServ"; name = "GROUPSYNC"; command = "nickserv/groupsync" }