From 20be94d6ac732a79360a02d8cc48f8df67ff9960 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 17 Sep 2017 10:41:37 -0400 Subject: [PATCH] Add those settings to the sample INI files. --- development.ini | 14 ++++++++++++++ production.ini | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/development.ini b/development.ini index 62c9c36..eff362f 100755 --- a/development.ini +++ b/development.ini @@ -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] diff --git a/production.ini b/production.ini index c683216..c3838a1 100644 --- a/production.ini +++ b/production.ini @@ -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 -- 2.39.2