aboutsummaryrefslogtreecommitdiffstats
path: root/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2
blob: 1ff626b1ee5547b568d6452760ab672d78e82784 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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>