]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - development.ini
Remove the try-catch block here. It isn't needed.
[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 ##### END XONSTAT CONFIG SETTINGS #####
40
41 [pipeline:main]
42 pipeline =
43     egg:WebError#evalerror
44     tm
45     XonStat
46
47 [filter:tm]
48 use = egg:repoze.tm2#tm
49 commit_veto = repoze.tm:default_commit_veto
50
51 [server:main]
52 use = egg:waitress#main
53 host = 0.0.0.0
54 port = 6543
55
56 # Begin logging configuration
57
58 [loggers]
59 keys = root, xonstat, sqlalchemy
60
61 [handlers]
62 keys = console
63
64 [formatters]
65 keys = generic
66
67 [logger_root]
68 level = INFO
69 handlers = console
70
71 [logger_xonstat]
72 level = DEBUG
73 handlers =
74 qualname = xonstat
75
76 [logger_sqlalchemy]
77 level = WARN
78 handlers =
79 qualname = sqlalchemy.engine
80 # "level = INFO" logs SQL queries.
81 # "level = DEBUG" logs SQL queries and results.
82 # "level = WARN" logs neither.  (Recommended for production systems.)
83
84 [handler_console]
85 class = StreamHandler
86 args = (sys.stderr,)
87 level = NOTSET
88 formatter = generic
89
90 [formatter_generic]
91 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
92
93 # End logging configuration