]> git.xonotic.org Git - xonotic/xonstat.git/blob - development.ini
Add pyramid_persona in the runtime config. Ensure it has default config params.
[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 # Mozilla Persona settings
25 persona.secret = This is a secret string. Please change me!
26 persona.audiences = http://localhost:6543
27
28 ##### XONSTAT CONFIG SETTINGS #####
29
30 # how many "real" players are required before the data
31 # is stored in the database
32 xonstat.minimum_required_players = 1
33
34 # how far back to reach for calculating leaderboard rank
35 # e.g. set to 7 and only the current week's data is used
36 xonstat.leaderboard_lifetime = 30
37
38 # should the server verify requests using the d0_blind_id library?
39 # if so, edit the d0_blind_id.py file with the correct location of
40 # the crypto-keygen-standalone binary from the xonotic installation
41 # Note: the default is true
42 xonstat.verify_requests = false
43
44 ##### END XONSTAT CONFIG SETTINGS #####
45
46 [pipeline:main]
47 pipeline =
48     egg:WebError#evalerror
49     tm
50     XonStat
51
52 [filter:tm]
53 use = egg:repoze.tm2#tm
54 commit_veto = repoze.tm:default_commit_veto
55
56 [server:main]
57 use = egg:waitress#main
58 host = 0.0.0.0
59 port = 6543
60
61 # Begin logging configuration
62
63 [loggers]
64 keys = root, xonstat, sqlalchemy
65
66 [handlers]
67 keys = console
68
69 [formatters]
70 keys = generic
71
72 [logger_root]
73 level = INFO
74 handlers = console
75
76 [logger_xonstat]
77 level = DEBUG
78 handlers =
79 qualname = xonstat
80
81 [logger_sqlalchemy]
82 level = WARN
83 handlers =
84 qualname = sqlalchemy.engine
85 # "level = INFO" logs SQL queries.
86 # "level = DEBUG" logs SQL queries and results.
87 # "level = WARN" logs neither.  (Recommended for production systems.)
88
89 [handler_console]
90 class = StreamHandler
91 args = (sys.stderr,)
92 level = NOTSET
93 formatter = generic
94
95 [formatter_generic]
96 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
97
98 # End logging configuration