diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-07-22 18:38:16 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-07-22 18:38:16 -0700 |
commit | d1a62b36a6d8b350e3088ec59de088669b271994 (patch) | |
tree | e30499fcf3b69cfa11b6a2492e0b520ee5f2cfd5 /roles/znc/templates | |
parent | 90b6400c511ad214c58abb3127a2e96ae6c1ae24 (diff) | |
download | infra-d1a62b36a6d8b350e3088ec59de088669b271994.tar.gz infra-d1a62b36a6d8b350e3088ec59de088669b271994.zip |
add znc setup from sovereign (verbatim)
Diffstat (limited to 'roles/znc/templates')
-rw-r--r-- | roles/znc/templates/etc_letsencrypt_postrenew_znc.sh.j2 | 7 | ||||
-rw-r--r-- | roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 | 84 |
2 files changed, 91 insertions, 0 deletions
diff --git a/roles/znc/templates/etc_letsencrypt_postrenew_znc.sh.j2 b/roles/znc/templates/etc_letsencrypt_postrenew_znc.sh.j2 new file mode 100644 index 0000000..bcdfae1 --- /dev/null +++ b/roles/znc/templates/etc_letsencrypt_postrenew_znc.sh.j2 @@ -0,0 +1,7 @@ +#!/bin/bash +# Executed by /etc/cron.daily/letsencrypt-renew + +cat /etc/letsencrypt/live/{{ domain }}/{privkey,fullchain}.pem > /usr/lib/znc/znc.pem +chown znc.znc /usr/lib/znc/znc.pem +chmod 640 /usr/lib/znc/znc.pem +service znc restart diff --git a/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 b/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 new file mode 100644 index 0000000..1ff626b --- /dev/null +++ b/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 @@ -0,0 +1,84 @@ +// WARNING +// +// Do NOT edit this file while ZNC is running! +// Use webadmin or *controlpanel instead. +// +// Buf if you feel risky, you might want to read help on /znc saveconfig and /znc rehash. +// Also check http://en.znc.in/wiki/Configuration + +AnonIPLimit = 10 +ConnectDelay = 5 +LoadModule = webadmin +LoadModule = fail2ban +LoadModule = lastseen +LoadModule = partyline +MaxBufferSize = 500 +Motd = Connected to ZNC +PidFile = /var/run/znc/znc.pid +ProtectWebSessions = true +SSLCertFile = /usr/lib/znc/znc.pem +ServerThrottle = 30 +Skin = _default_ +StatusPrefix = * +Version = 1.0 + +<Listener listener0> + AllowIRC = true + AllowWeb = false + IPv4 = true + IPv6 = true + Port = 6697 + SSL = true +</Listener> + +<Listener listener1> + AllowIRC = false + AllowWeb = true + IPv4 = true + IPv6 = true + Port = 6643 + SSL = false +</Listener> + +<User {{ irc_nick }}> + Admin = true + Allow = * + AltNick = {{ irc_nick }}_ + AppendTimestamp = false + AutoClearChanBuffer = true + Buffer = 5000 + ChanModes = +stn + DenyLoadMod = false + DenySetBindHost = false + Ident = {{ irc_ident }} + JoinTries = 10 + LoadModule = controlpanel + LoadModule = perform + LoadModule = block_motd + LoadModule = clientnotify + MaxNetworks = 1 + MultiClients = true + Nick = {{ irc_nick }} + PrependTimestamp = true + QuitMsg = {{ irc_quitmsg }} + RealName = {{ irc_realname }} + TimestampFormat = [%H:%M:%S] + Timezone = {{ irc_timezone }} + + <Pass password> + Method = sha256 + Hash = {{ irc_password_hash }} + Salt = {{ irc_password_salt }} + </Pass> + + <Network freenode> + BindHost = 0.0.0.0 + FloodBurst = 4 + FloodRate = 1.00 + IRCConnectEnabled = true + LoadModule = kickrejoin + LoadModule = nickserv + LoadModule = savebuff + Server = chat.freenode.net +6697 + </Network> +</User> |