From 7277e29c6387188158a1672f065390f48032aac5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 22 Jan 2017 10:19:49 -0500 Subject: [PATCH] Add default htconfig.php Remove final .htconfig.php --- .htconfig.php | 86 --------------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 .htconfig.php diff --git a/.htconfig.php b/.htconfig.php deleted file mode 100644 index 3e70ecda..00000000 --- a/.htconfig.php +++ /dev/null @@ -1,86 +0,0 @@ -config['sitename'] = "EXPERIMENTAL Friendica public directory"; - -//Statistic display settings. -$a->config['stats'] = array( - - //For site health, the max age for which to display data. - 'maxDataAge' => 3600*24*30*4 //120 days = ~4 months - -); - -//Settings related to the syncing feature. -$a->config['syncing'] = array( - - //Pulling may be quite intensive at first when it has to do a full sync and your directory is empty. - //This timeout should be shorter than your cronjob interval. Preferably with a little breathing room. - 'timeout' => 3*60, //3 minutes - - //Push new submits to the `sync-target` entries? - 'enable_pushing' => true, - - //Maximum amount of items per batch per target to push to other sync-targets. - //For example: 3 targets x20 items = 60 requests. - 'max_push_items' => 10, - - //Pull updates from the `sync-target` entries? - 'enable_pulling' => true, - - //This is your normal amount of threads for pulling. - //With regular intervals, there's no need to give this a high value. - //But when your server is brand new, you may want to keep this high for the first day or two. - 'pulling_threads' => 25, - - //How many items should we crawl per sync? - 'max_pull_items' => 250 - -); - -//Things related to site-health monitoring. -$a->config['site-health'] = array( - - //Wait for at least ... before probing a site again. - //The longer this value, the more "stable" site-healths will be over time. - //Note: If a bad (negative) health site submits something, a probe will be performed regardless. - 'min_probe_delay' => 24*3600, // 1 day - - //Probes get a simple /friendica/json file from the server. - //Feel free to set this timeout to a very tight value. - 'probe_timeout' => 5, // seconds - - //Imports should be fast. Feel free to prioritize healthy sites. - 'skip_import_threshold' => -20 - -); - -//Things related to the maintenance cronjob. -$a->config['maintenance'] = array( - - //This is to prevent I/O blocking. Will cost you some RAM overhead though. - //A good server should handle much more than this default, so you can tweak this. - 'threads' => 10, - - //Limit the amount of scrapes per execution of the maintainer. - //This will depend a lot on the frequency with which you call the maintainer. - //If you have 10 threads and 80 max_scrapes, that means each thread will handle 8 scrapes. - 'max_scrapes' => 80, - - //Wait for at least ... before scraping a profile again. - 'min_scrape_delay' => 3*24*3600, // 3 days - - //At which health value should we start removing profiles? - 'remove_profile_health_threshold' => -60 - -); \ No newline at end of file