Skip to content

Bancho server config file

Nyo edited this page Apr 8, 2016 · 3 revisions

Bancho server config file

pep.py (ripple's bancho server) needs a config file (path/to/ripple/c.ppy.sh/config.ini) inside its folder. If you don't have a config file, you can simply run the server and a default config.ini will be generated. Here you can find all the options that are inside the config file and their explaination.

[db] section

This section contains MySQL parameters.

  • host - Host name
  • username - MySQL username
  • password - MySQL plain password
  • database - Database name
  • pingtime - Time between MySQL connection checks

[server] section

This section contains some server settings

  • server - Server framework (flask or tornado). We recommend flask for development servers and tornado for production servers
  • host - Server host. Set to 0.0.0.0 to listen to all IPs. Works only if server is flask
  • port - Server port
  • outputpackets - If 1 or True, all incoming packets will be shown on console
  • outputrequesttime - If 1 or True, request time will be shown on console
  • localizeusers - If 1 or True, bancho will find users location through ip.zxq.co and show it in user panels
  • timeouttime - Time to pass between packets before users can be marked as offline
  • timeoutlooptime - Time between users timeout checks

[flask] section

This section contains some flask settings. If you are using tornado as sever, ignore this section

  • threaded - If 1 or True, run the server in threaded mode
  • debug - If 1 or True, run flask in debug mode
  • logger - If 1 or True, enable flask logger

[ci] section

This section contains settings related to the new bancho ci system. Ignore this if you don't know what ci is.

  • key - supersecretTM ci key

Default config file

[db]
host = localhost
username = root
password = 
database = ripple
pingtime = 600

[server]
server = tornado
host = 0.0.0.0
port = 5001
outputpackets = 0
outputrequesttime = 0
localizeusers = 0
timeouttime = 100
timeoutlooptime = 100

[flask]
threaded = 1
debug = 0
logger = 0

[ci]
key=changeme