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