#!/bin/sh
# ============================================================================================================
# NIGHT LIGHT IRC PROXY CONFIGURATION FILE
#
# Here you can configure basic settings for ircproxyd.
#
# Lines starting with '#' are comments.
#
# You can specify what ircproxyd configuration file to use on
# command line with the '-f' switch, like:
#
# "ircproxyd -f /home/jonas/ircproxy/data/ircproxyd.conf"
#
# ============================================================================================================


# - Change working directory on startup.
#
# CHDIR = y/n
# CHDIRPATH = Valid path without ending '/'
#
# If CHDIR is set to 'y' ircproxyd will refuse to start if it cant switch to this directory.
#

CHDIR=no
CHDIRPATH="/usr/share/ircproxy"


# - File with full path where to store process ID number.
#
# PIDFILE = Filename with full path
#
# ircproxyd will refuse to start if it cant read or write to this file.
#

PIDFILE="/var/run/ircproxyd.pid"


# - Valid non-root user if you start ircproxyd as root.
#
# EUSER = Valid system username
# EGROUP = Valid system groupname
#
# Local user and group to switch to with seteuid()/setguid()
# if you start the ircproxyd as root, it will refuse to start
# unless it can successfully switch UID/GUID to this non-root
# user.
#
#

EUSER="ircproxy"
EGROUP="users"


# - Paths
#
# DATAPATH = Valid path to directory where ircproxyd should look for configuration files.
# LOGPATH = Valid path to directory where ircproxyd should store all logs.
#

DATAPATH="/usr/share/ircproxy"
LOGPATH="/var/log/ircproxy"


# - Maximum number of clients allowed to connect at the same time.
#
# MAXCLIENTS = number
#
# The maximum number of clients allowed to connect to ircproxyd at the same time.
# Don't set this unreasonable high or low.
#

MAXCLIENTS=30


# - Show deny reason when disconnecting clients.
#
# CLIENT_SHOWDENYREASON = y/n
#
# If a IRC client is denied access when connecting to
# ircproxyd because of rules set in the access conf or
# the username/password is wrong the user will be
# disconected with a ERROR message. To make ircproxyd more
# secure you can hide the real reason.
#

CLIENT_SHOWDENYREASON=yes


# - Maximum SendQ and lines per second for connected IRC clients.
#
# CLIENT_MAXSENDQ = number (total incoming buffer size)
# CLIENT_MAXLINESLINESPERSEC = number (maximum lines per seconds)
#
# This is a flood protection to disconnect clients sending
# to much data to ircproxyd at the same time.
#
# Don't mess with this unless you know exactly what you are doing!
#

CLIENT_MAXSENDQ=200
CLIENT_MAXLINESPERSEC="150:10"


# - Configuration filenames
#
# Here you can specify what files ircproxyd should look
# for when reading the configuration. This can be filenames
# or filenames with full paths.
#

ACCESS_CONFFILE="ircproxyd-access.conf"
LISTEN_CONFFILE="ircproxyd-listen.conf"
USER_CONFFILE="ircproxyd-user.conf"
CONN_CONFFILE="ircproxyd-conn.conf"
IDENT_CONFFILE="ircproxyd-ident.conf"


# - Log filenames
#
# What to call the log files.
#

MAINLOGFILE="ircproxyd.log"
ERRORLOGFILE="ircproxyd-error.log"
DEBUGLOGFILE="ircproxyd-debug.log"


# - SSL support
#
# SSLSERVERCERTIFICATE/SSLCLIENTCERTIFICATE = filename with full path to a valid SSL certificate.
# SSLSERVERPRIVATEKEY/SSLCLIENTPRIVATEKEY = filename with fill path to a valid SSL priavte key
# SSLSERVERCIPHERS/SSLCLIENTCIPHERS = Ciphers list
#

SSLSUPPORT=yes

SSLSERVERCERTIFICATE="/usr/share/ircproxy/cert/ircproxy.crt"
SSLSERVERPRIVATEKEY="/usr/share/ircproxy/cert/ircproxy.key"

SSLCLIENTCERTIFICATE="/usr/share/ircproxy/cert/ircproxy.crt"
SSLCLIENTPRIVATEKEY="/usr/share/ircproxy/cert/ircproxy.key"

#SSLSERVERCIPHERS="DEFAULT"
#SSLCLIENTCIPHERS="DEFAULT"

#
# - CRYPTPASSWD
#
# Passwords in ircproxyd-user.conf are encrypted!
#
#

CRYPTPASSWD=yes


#
# - UNIXPASSWD
#
# Use the unix system passwd file for authentication
# instead of ircproxyd-user.conf
#
# This should work on most UNIX systems, but not all.
#

UNIXPASSWD=no


syntax highlighted by Code2HTML, v. 0.9.1