]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add those settings to the sample INI files.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 17 Sep 2017 14:41:37 +0000 (10:41 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 17 Sep 2017 14:41:37 +0000 (10:41 -0400)
development.ini
production.ini

index 62c9c36fac5507f879d0db47d84cec140f4e5af9..eff362fddba50331059114eb1f31bc236118834c 100755 (executable)
@@ -36,6 +36,20 @@ xonstat.leaderboard_lifetime = 30
 # Note: the default is true
 xonstat.verify_requests = false
 
+# similar to the above variables, but for server-specific views
+
+# how far back to go when fetching server statistics
+xonstat.servers.leaderboard_lifetime = 30
+
+# how many entries on the leaderboard to show
+xonstat.servers.leaderboard_count = 10
+
+# how many server entries to show per page
+xonstat.servers.index_count = 20
+
+# how many recent games to show
+xonstat.servers.recent_games_count = 20
+
 ##### END XONSTAT CONFIG SETTINGS #####
 
 [pipeline:main]
index c68321641e8339219a00085546b90de0cce9b3b0..c3838a1107aff3f1b3af8057cec31443c37a4c91 100644 (file)
@@ -15,10 +15,14 @@ cache.regions             =  hourly_term
 cache.type                =  memory
 cache.hourly_term.expire  =  3600
 
-# XonStat-specific settings
-xonstat.minimum_required_players = 2
-xonstat.leaderboard_lifetime     = 7
-xonstat.verify_requests          = true
+# XonStat-specific settings. See development.ini for their descriptions.
+xonstat.minimum_required_players     = 2
+xonstat.leaderboard_lifetime         = 7
+xonstat.verify_requests              = true
+xonstat.servers.leaderboard_lifetime = 30
+xonstat.servers.leaderboard_count    = 10
+xonstat.servers.index_count          = 20
+xonstat.servers.recent_games_count   = 20
 
 [filter:weberror]
 use   = egg:WebError#error_catcher