Skip to content

Instantly share code, notes, and snippets.

@DanielOaks
Last active February 18, 2023 17:44
Show Gist options
  • Save DanielOaks/7787712f68f9bfe60f633ac50f6c4033 to your computer and use it in GitHub Desktop.
Save DanielOaks/7787712f68f9bfe60f633ac50f6c4033 to your computer and use it in GitHub Desktop.
kiwibnc configs
[log]
# level may be one of: trace, debug, info, notice, warn, error
level="info"
colour=true
[listeners]
bind = [
"0.0.0.0:3001",
]
[connections]
throttle=1000
buffer=10240
[queue]
host="amqp://localhost"
sockets_queue="q_sockets"
worker_queue="q_worker"
[database]
path="./connections.db"
# crypt_key must be a 32 random character secret string.
# DO NOT FORGET THIS KEY... you will not be able to recover user data
crypt_key="12345678901234567890123456789012"
[extensions]
loaded = [
"bouncer",
"replyrouter",
]
{
"windowTitle": "Kiwi IRC - The web IRC client",
"startupScreen": "welcome",
"kiwiServer": "http://127.0.0.1:3002/webirc/kiwiirc/",
"restricted": false,
"theme": "Default",
"themes": [
{ "name": "Default", "url": "static/themes/default" },
{ "name": "Dark", "url": "static/themes/dark" },
{ "name": "Coffee", "url": "static/themes/coffee" },
{ "name": "GrayFox", "url": "static/themes/grayfox" },
{ "name": "Nightswatch", "url": "static/themes/nightswatch" },
{ "name": "Osprey", "url": "static/themes/osprey" },
{ "name": "Radioactive", "url": "static/themes/radioactive" },
{ "name": "Sky", "url": "static/themes/sky" },
{ "name": "Elite", "url": "static/themes/elite" }
],
"startupOptions" : {
"state_key": "kiiwi",
"server": "localhost",
"port": 3001,
"tls": false,
"direct": false,
"nick": "dan",
"password": "password",
"allowNoChannel": true,
"remember_buffers": false,
"bouncer": true,
"showRaw": true
},
"embedly": {
"key": ""
},
"plugins": [
]
}
# 1 = Debug; 2 = Info; 3 = Warn;
logLevel = 1
# Enable the built in identd server (listens on port 113)
identd = false
# The name of this gateway as reported in WEBIRC to IRC servers
gateway_name = "webircgateway"
# A secret string used for generating client JWT tokens. Do not share this!
secret = ""
# Send the server a quit message when the client is closed
# Comment out to disable
send_quit_on_client_close = "Client closed"
[verify]
recaptcha_secret = ""
recaptcha_key = ""
[clients]
# Default username / realname for IRC connections. If disabled it will use
# the values provided from the IRC client itself.
# %h will be replaced with the users hostname
# %i will be replaced with a hexed value of the users IP
#username = "%i"
#realname = "I am a webchat user"
# This hostname value will only be used when using a WEBIRC password
#hostname = "%h"
# The websocket / http server
[server.1]
bind = "0.0.0.0"
port = 3002
# Example TLS server
#[server.2]
#bind = "0.0.0.0"
#port = 443
#tls = true
#cert = server.crt
#key = server.key
# If you don't have a certificate, uncomment the below line to automatically generate a
# free certificate using letsencrypt.com (overrides the above cert/key options). This requires
# a server running on port 80 to initially generate the certificate.
#letsencrypt_cache = ./certs
# Example unix socket server
#[server.3]
#bind = unix:/tmp/webircgateway.sock
#bind_mode = 0777
# Serve static files from a web root folder.
# Optional, but handy for serving the Kiwi IRC client if no other webserver is available
[fileserving]
enabled = false
webroot = www/
[transports]
websocket
sockjs
kiwiirc
# Websites (hostnames) that are allowed to connect here
# No entries here will allow any website to connect.
# Origins do not include a trailing / after the host (and optional port)
[allowed_origins]
"*"
# If using a reverse proxy, it must be whitelisted for the client
# hostnames to be read correctly. In CIDR format.
# The user IPs are read from the standard X-Forwarded-For HTTP header
[reverse_proxies]
127.0.0.0/8
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
"::1/128"
"fd00::/8"
# # Connections will be sent to a random upstream
# [upstream.1]
# hostname = "irc.example.net"
# port = 6667
# tls = false
# # Connection timeout in seconds
# timeout = 5
# # Throttle the lines being written by X per second
# throttle = 2
# webirc = ""
# A public gateway to any IRC network
# If enabled, Kiwi IRC clients may connect to any IRC network (or a whitelisted
# network below) through the kiwiirc engine
[gateway]
enabled = true
timeout = 5
throttle = 2
# Whitelisted IRC networks while in public gateway mode
# If any networks are in this list then connections can only be made to these
[gateway.whitelist]
#irc.example.com
#*.example2.com
[gateway.webirc]
irc.network.org = webirc_password
irc.network2.org = webirc_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment