Skip to content

Commit

Permalink
Move config.py to config-example.py and .gitignore the real config
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Sep 14, 2014
1 parent 757e186 commit 3a891e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
*~
static/list.json
static/servers.js
config.py

18 changes: 9 additions & 9 deletions config.py → config-example.py
Expand Up @@ -3,28 +3,28 @@
# Never use in production!
#DEBUG = True

# Address for development server to listen on
#HOST = "0.0.0.0"
# Port for development server to listen on
#PORT = 5000

# Makes the server more performant at sending static files when the
# server is being proxied by a server that supports X-Sendfile.
#USE_X_SENDFILE = True

# Address to listen for clients on
HOST = "0.0.0.0"

# Port to listen on
PORT = 8000

# File to store the JSON server list data in.
FILENAME = "list.json"

# Ammount of time, is seconds, after which servers are removed from the list
# Amount of time, is seconds, after which servers are removed from the list
# if they haven't updated their listings. Note: By default Minetest servers
# only announce once every 5 minutes, so this should be more than 300.
PURGE_TIME = 350

# List of banned IP addresses.
# List of banned IP addresses
BANLIST = []

# Creates server entries if a server sends an 'update' and there is no entry yet
# Creates server entries if a server sends an 'update' and there is no entry yet.
# This should only be used to populate the server list after list.json was deleted.
# This WILL cause problems such as mapgen, mods and privilege information missing from the list
ALLOW_UPDATE_WITHOUT_OLD = False

0 comments on commit 3a891e5

Please sign in to comment.