From 826e5bbaddf9a0252ad88b7cfb593e73f1124104 Mon Sep 17 00:00:00 2001 From: luccioman Date: Mon, 23 Jan 2017 16:05:51 +0100 Subject: [PATCH] Documented /HostBrowser.html related configuration settings --- defaults/yacy.init | 4 +++- htroot/HostBrowser.java | 20 +++++++++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/defaults/yacy.init b/defaults/yacy.init index 0dff8cfc4..cb9a95c04 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -1009,7 +1009,7 @@ svnRevision=0 currentSkin=pdbootstrap # flag to show if pages shall be usable for non-admin users -# this can be applied to the Surftips.html and yacysearch.html page +# this can be applied to the Surftips.html, yacysearch.html and HostBrowser.html pages publicSurftips = true publicSearchpage = true @@ -1244,7 +1244,9 @@ contentcontrol.smwimport.targetlist = contentcontrol contentcontrol.smwimport.defaultcategory = yacy # host browser settings +# Allow the administrator to stack URLs to the local crawl queue from the host browser page, automatically (when a path is unknown) or manually through a "load and index" link browser.autoload = false +# Allow everyone to stack URLs to the local crawl queue. "browser.autoload" has also to be set to true to enable automatic loading on an unknown path. browser.load4everyone = false # greedy learning: fast information acquisition heuristic for new peers diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.java index c083db71c..e51d61571 100644 --- a/htroot/HostBrowser.java +++ b/htroot/HostBrowser.java @@ -82,11 +82,25 @@ public class HostBrowser { *

Some parameters need administrator authentication or unauthenticated local host requests to be allowed : load, deleteLoadErrors, delete, reload404, * hosts="crawling" and hosts="error". * The "load" parameter can also be applied without authentication when "browser.load4everyone" configuration setting is true.

+ *

+ * Configuration settings : + *

+ *

* @param header servlet request header * @param post request parameters. Supported keys :