-
Notifications
You must be signed in to change notification settings - Fork 25
Bancho server config file
Nyo edited this page Apr 8, 2016
·
3 revisions
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.
This section contains MySQL parameters.
-
host
- Host name -
username
- MySQL username -
password
- MySQL plain password -
database
- Database name -
pingtime
- Time between MySQL connection checks
This section contains some server settings
-
server
- Server framework (flask
ortornado
). We recommendflask
for development servers andtornado
for production servers -
host
- Server host. Set to0.0.0.0
to listen to all IPs. Works only ifserver
isflask
-
port
- Server port -
outputpackets
- If1
orTrue
, all incoming packets will be shown on console -
outputrequesttime
- If1
orTrue
, request time will be shown on console -
localizeusers
- If1
orTrue
, bancho will find users location throughip.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
This section contains some flask settings. If you are using tornado as sever, ignore this section
-
threaded
- If1
orTrue
, run the server in threaded mode -
debug
- If1
orTrue
, run flask in debug mode -
logger
- If1
orTrue
, enable flask logger
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
[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