Skip to content

Commit 3a891e5

Browse files
committedSep 14, 2014
Move config.py to config-example.py and .gitignore the real config
1 parent 757e186 commit 3a891e5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*~
22
static/list.json
33
static/servers.js
4+
config.py
45

‎config.py ‎config-example.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
# Never use in production!
44
#DEBUG = True
55

6+
# Address for development server to listen on
7+
#HOST = "0.0.0.0"
8+
# Port for development server to listen on
9+
#PORT = 5000
10+
611
# Makes the server more performant at sending static files when the
712
# server is being proxied by a server that supports X-Sendfile.
813
#USE_X_SENDFILE = True
914

10-
# Address to listen for clients on
11-
HOST = "0.0.0.0"
12-
13-
# Port to listen on
14-
PORT = 8000
15-
1615
# File to store the JSON server list data in.
1716
FILENAME = "list.json"
1817

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

24-
# List of banned IP addresses.
23+
# List of banned IP addresses
2524
BANLIST = []
2625

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

0 commit comments

Comments
 (0)
Please sign in to comment.