]> git.xonotic.org Git - xonotic/xonstat.git/blob - development.ini
Add a new summary statistics byline below the main logo.
[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 jinja2.directories = xonstat:templates
16 mako.directories = xonstat:templates
17
18 # Beaker cache settings
19 # Default is to use one region with hourly cache invalidation
20 cache.regions = hourly_term
21 cache.type = memory
22 cache.hourly_term.expire = 3600
23
24
25 ##### XONSTAT CONFIG SETTINGS #####
26
27 # how many "real" players are required before the data
28 # is stored in the database
29 xonstat.minimum_required_players = 1
30
31 # how far back to reach for calculating leaderboard rank
32 # e.g. set to 7 and only the current week's data is used
33 xonstat.leaderboard_lifetime = 30
34
35 ##### END XONSTAT CONFIG SETTINGS #####
36
37 [pipeline:main]
38 pipeline =
39     egg:WebError#evalerror
40     tm
41     XonStat
42
43 [filter:tm]
44 use = egg:repoze.tm2#tm
45 commit_veto = repoze.tm:default_commit_veto
46
47 [server:main]
48 use = egg:Paste#http
49 host = 0.0.0.0
50 port = 6543
51
52 # Begin logging configuration
53
54 [loggers]
55 keys = root, xonstat, sqlalchemy
56
57 [handlers]
58 keys = console
59
60 [formatters]
61 keys = generic
62
63 [logger_root]
64 level = INFO
65 handlers = console
66
67 [logger_xonstat]
68 level = DEBUG
69 handlers =
70 qualname = xonstat
71
72 [logger_sqlalchemy]
73 level = WARN
74 handlers =
75 qualname = sqlalchemy.engine
76 # "level = INFO" logs SQL queries.
77 # "level = DEBUG" logs SQL queries and results.
78 # "level = WARN" logs neither.  (Recommended for production systems.)
79
80 [handler_console]
81 class = StreamHandler
82 args = (sys.stderr,)
83 level = NOTSET
84 formatter = generic
85
86 [formatter_generic]
87 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
88
89 # End logging configuration