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 62c9c36..eff362f 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 c683216..c3838a1 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