ZNC's configuration is located in
/etc/config/znc. You can use it to configure most common aspects of ZNC. Supplying your own configuration is supported as of 0.998-2.
libstdcpp. This is fixed in trunk and recent Backfire builds.
There are two section types for ZNC, a common one and one or more user sections.
The common section defines where ZNC is supposed to listen, which global modules should be loaded and some other global options. A minimum configuration looks like this:
config 'znc' list 'listener' '192.168.1.1 1234'
| ||integer||no|| ||Number of anonymous connections allowed.|
| ||integer||no|| ||Time in seconds ZNC waits between establishing connections.|
| ||list of strings||Yes||none||One or more directives where ZNC should listen, in the format “<IP/Host> [+]<Port>”. The “+” forces the port to be SSL. Both IPv4 and IPv6 addresses are valid. Note: You need to provide a SSL certificate for using SSL ports.|
| ||integer||no|| ||Sets the global Max Buffer Size a user can have.|
| ||list of strings||no||none||Instructs ZNC to load global modules. Uses the format “<modulename> [arguments…]”.|
| ||string||no||root/nobody||Run ZNC as this user instead of the default user (root for external config, nobody for generated config)|
| ||string||no||nogroup||Run ZNC as this group. Only used when using a generated config.|
| ||string||no||none||Use this when the runas_user does not have a shell, i.e. nobody in passwd is /bin/false. Only used when using a generated config.|
| ||integer||no|| ||Time in seconds ZNC waits between two connection attempts to an IRC server.|
| ||string||no||none|| Use an external configuration at this location instead of the generated one. Any other options except
Note: Using runas_user to run ZNC as a different user with an external config requires
| ||string||no||none||Use this certificate for SSL ports.|
Note: If you want your ZNC to be reachable from the outside, you can use '0.0.0.0' as the IP address, which makes ZNC listen on all interfaces. You also need to allow connections to its port through the firewall.
For each connection you want to use you need to create a separate user. Each user section corresponds to one user in ZNC. The section name is the user name for authentication to ZNC itself.
A minimal user configuration looks like this:
config 'user' 'sampleUser' option 'password' 'changeme' option 'nick' 'sampleUser'
This would create a user with the login
sampleUser, the password
changeme and the nick
| ||string||no||none||The Alternative Nickname, if the first one is occupied.|
| ||integer||no|| ||Specifies the per channel log buffer limit in lines.|
| ||string||no||<Server defaults>||Overrides the channel modes.|
| ||list of strings||no||none||Specifies one or more channels to join on connect. The required format is “<channelname> [<password>]”. Note: Only ZNC 0.096 or later.|
| ||string||no||<nick>||Specifies the ident to use.|
| ||list of strings||no||none||Instructs ZNC to load user modules. The required format is “modulename> [<arguments…>]”.|
| ||string||Yes||none||The Nickname of this user.|
| ||string||no||<nick>||The real name of this user.|
| ||string||Yes||none|| Password for this user. Can be either a plain text password, or a generated password hash through
| ||string||no||<ZNC default>||Specifies the quit message used when closing the connection to the server.|
| ||list of strings||no||none||Specifies the list of servers to connect to. The required format “<IP/Host> [+]<Port> [<Password>]”, where the “+” indicates that SSL should be used. Both IPv4 and IPv6 addresses are valid.|