Created
February 10, 2014 21:58
-
-
Save wolfdancer/8925077 to your computer and use it in GitHub Desktop.
ZNC Configuration that works with two clients: PC and Phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
// shaneduan comment: | |
// This is the ZNC configuration that suppots the following features: | |
// * Allow push notification to a push mobile app | |
// * Allow a mobile client to connect | |
// * Allow the history to be played back through different buffer on mobile and computer. | |
// Comments will be put above the lines that are significant | |
AnonIPLimit = 10 | |
ConnectDelay = 5 | |
LoadModule = partyline | |
LoadModule = webadmin | |
MaxBufferSize = 20000 | |
ProtectWebSessions = true | |
// put your cert file for secure connection | |
SSLCertFile = /home/admin/.znc/znc.pem | |
ServerThrottle = 30 | |
Skin = _default_ | |
StatusPrefix = * | |
Version = 1.0 | |
<Listener listener0> | |
AllowIRC = true | |
AllowWeb = true | |
IPv4 = true | |
IPv6 = true | |
Port = 6697 | |
SSL = true | |
</Listener> | |
// use your user name on IRC server | |
<User shaneduan> | |
Admin = true | |
Allow = * | |
AltNick = shaneduan_ | |
AppendTimestamp = false | |
AutoClearChanBuffer = true | |
Buffer = 0 | |
DenyLoadMod = false | |
DenySetBindHost = false | |
Ident = shaneduan | |
JoinTries = 0 | |
LoadModule = controlpanel | |
LoadModule = cert | |
LoadModule = log | |
LoadModule = clientnotify | |
MaxNetworks = 1 | |
MultiClients = true | |
Nick = shaneduan | |
PrependTimestamp = true | |
QuitMsg = Leaving... | |
// Use your real name | |
RealName = Shane Duan | |
TimestampFormat = [%H:%M:%S] | |
Timezone = US/Pacific-New | |
<Network freenode> | |
FloodBurst = 4 | |
FloodRate = 1.00 | |
IRCConnectEnabled = true | |
LoadModule = keepnick | |
LoadModule = nickserv | |
LoadModule = push | |
Server = irc.freenode.net +6697 | |
// list of channels with keys | |
<Chan #blueflood> | |
</Chan> | |
<Chan #blueflood-dev> | |
Key = [your key for channel] | |
</Chan> | |
<Chan #cloudmonitoring> | |
</Chan> | |
</Network> | |
// your password for bouncer, you can get it from your znc config | |
<Pass password> | |
Hash = [Hash] | |
Method = SHA256 | |
Salt = [Salt] | |
</Pass> | |
</User> | |
// username for your phone to connect to | |
<User shaneduan_iphone> | |
Admin = false | |
Allow = * | |
AltNick = shaneduan_ | |
AppendTimestamp = false | |
AutoClearChanBuffer = true | |
Buffer = 99 | |
DenyLoadMod = false | |
DenySetBindHost = false | |
Ident = [IRC id] | |
JoinTries = 0 | |
MaxNetworks = 1 | |
MultiClients = true | |
Nick = [IRC id] | |
PrependTimestamp = true | |
QuitMsg = Mac leaving... | |
RealName = Shane Duan | |
StatusPrefix = ^ | |
TimestampFormat = [%H:%M:%S] | |
<Network default> | |
FloodBurst = 4 | |
FloodRate = 1.00 | |
IRCConnectEnabled = true | |
// Information of your ZNC instance | |
Server = [URL] +[port] [Password] | |
</Network> | |
<Pass password> | |
Hash = [Hash] | |
Method = SHA256 | |
Salt = [Salt] | |
</Pass> | |
</User> | |
// User to use for connecting from computer | |
<User shaneduan_mac> | |
Admin = false | |
Allow = * | |
AltNick = shaneduan_ | |
AppendTimestamp = false | |
AutoClearChanBuffer = true | |
Buffer = 10000 | |
DenyLoadMod = false | |
DenySetBindHost = false | |
Ident = [IRC nick] | |
JoinTries = 0 | |
MaxNetworks = 1 | |
MultiClients = true | |
Nick = [IRC nick] | |
PrependTimestamp = true | |
QuitMsg = Mac leaving... | |
RealName = Shane Duan | |
StatusPrefix = ^ | |
TimestampFormat = [%H:%M:%S] | |
Timezone = US/Pacific-New | |
<Network default> | |
FloodBurst = 4 | |
FloodRate = 1.00 | |
IRCConnectEnabled = true | |
// Your ZNC bouncer information | |
Server = [URL] +[port] [password] | |
</Network> | |
<Pass password> | |
Hash = [Hash] | |
Method = SHA256 | |
Salt = [Salt] | |
</Pass> | |
</User> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment