Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
* :ref:`setting-yaml-webservice.port`: Port to bind the webserver to.
* :ref:`setting-yaml-webservice.allow_from`: Netmasks that are allowed to connect to the webserver
+.. warning::
+
+ Not setting a password will allow password-less access to the frontpage showing statistics, the :doc:`endpoint-jsonstat`, the :doc:`../common/api/endpoint-statistics` and the ``localhost`` specific endpoint of the :doc:`../common/api/endpoint-servers`.
+
Enabling the API
----------------
auto logPtr = g_slog->withName("webserver");
+ if (arg()["webserver-password"].empty()) {
+ logPtr->info(Logr::Warning, "Webserver launched without a password set!");
+ }
pdns::rust::misc::LogLevel loglevel = pdns::rust::misc::LogLevel::Normal;
const auto& configLevel = ::arg()["webserver-loglevel"];
if (configLevel == "none") {