Configure required minimum players using the ini file.
[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:5433/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 jinja2.directories = xonstat:templates
16 mako.directories = xonstat:templates
17
18 # how many "real" players are required before the data
19 # is stored in the database
20 xonstat.minimum_required_players = 1
21
22 [pipeline:main]
23 pipeline =
24     egg:WebError#evalerror
25     tm
26     XonStat
27
28 [filter:tm]
29 use = egg:repoze.tm2#tm
30 commit_veto = repoze.tm:default_commit_veto
31
32 [server:main]
33 use = egg:Paste#http
34 host = 0.0.0.0
35 port = 6543
36
37 # Begin logging configuration
38
39 [loggers]
40 keys = root, xonstat, sqlalchemy
41
42 [handlers]
43 keys = console
44
45 [formatters]
46 keys = generic
47
48 [logger_root]
49 level = INFO
50 handlers = console
51
52 [logger_xonstat]
53 level = DEBUG
54 handlers =
55 qualname = xonstat
56
57 [logger_sqlalchemy]
58 level = WARN
59 handlers =
60 qualname = sqlalchemy.engine
61 # "level = INFO" logs SQL queries.
62 # "level = DEBUG" logs SQL queries and results.
63 # "level = WARN" logs neither.  (Recommended for production systems.)
64
65 [handler_console]
66 class = StreamHandler
67 args = (sys.stderr,)
68 level = NOTSET
69 formatter = generic
70
71 [formatter_generic]
72 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
73
74 # End logging configuration