]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - development.ini
Allow opting out of the ranking process.
[xonotic/xonstat.git] / development.ini
1 [app:XonStat]
2 use = egg:XonStat
3 reload_templates = true
4 debug_authorization = false
5 debug_notfound = false
6 debug_routematch = false
7 debug_templates = true
8 default_locale_name = en
9 sqlalchemy.url = postgresql+psycopg2://xonstat:xonstat@localhost:5432/xonstatdb
10 session.type = file
11 session.data_dir = %(here)s/data/sessions/data
12 session.lock_dir = %(here)s/data/sessions/lock
13 session.key = xonstat
14 session.secret = CHANGEMECHANGEMECHANGEME
15 mako.directories = xonstat:templates
16
17 # Beaker cache settings
18 # Default is to use one region with hourly cache invalidation
19 cache.regions = hourly_term
20 cache.type = memory
21 cache.hourly_term.expire = 3600
22
23 ##### XONSTAT CONFIG SETTINGS #####
24
25 # how many "real" players are required before the data
26 # is stored in the database
27 xonstat.minimum_required_players = 1
28
29 # how far back to reach for calculating leaderboard rank
30 # e.g. set to 7 and only the current week's data is used
31 xonstat.leaderboard_lifetime = 30
32
33 # should the server verify requests using the d0_blind_id library?
34 # if so, edit the d0_blind_id.py file with the correct location of
35 # the crypto-keygen-standalone binary from the xonotic installation
36 # Note: the default is true
37 xonstat.verify_requests = false
38
39 # similar to the above variables, but for server-specific views
40
41 # how far back to go when fetching server statistics
42 xonstat.servers.leaderboard_lifetime = 30
43
44 # how many entries on the leaderboard to show
45 xonstat.servers.leaderboard_count = 10
46
47 # how many server entries to show per page
48 xonstat.servers.index_count = 20
49
50 # how many recent games to show
51 xonstat.servers.recent_games_count = 20
52
53 ##### END XONSTAT CONFIG SETTINGS #####
54
55 [pipeline:main]
56 pipeline =
57     egg:WebError#evalerror
58     tm
59     XonStat
60
61 [filter:tm]
62 use = egg:repoze.tm2#tm
63 commit_veto = repoze.tm:default_commit_veto
64
65 [server:main]
66 use = egg:waitress#main
67 host = 0.0.0.0
68 port = 6543
69
70 # Begin logging configuration
71
72 [loggers]
73 keys = root, xonstat, sqlalchemy
74
75 [handlers]
76 keys = console
77
78 [formatters]
79 keys = generic
80
81 [logger_root]
82 level = INFO
83 handlers = console
84
85 [logger_xonstat]
86 level = DEBUG
87 handlers =
88 qualname = xonstat
89
90 [logger_sqlalchemy]
91 level = WARN
92 handlers =
93 qualname = sqlalchemy.engine
94 # "level = INFO" logs SQL queries.
95 # "level = DEBUG" logs SQL queries and results.
96 # "level = WARN" logs neither.  (Recommended for production systems.)
97
98 [handler_console]
99 class = StreamHandler
100 args = (sys.stderr,)
101 level = NOTSET
102 formatter = generic
103
104 [formatter_generic]
105 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
106
107 # End logging configuration