From 4fc2f55f761d71aae1f145d5aa94ba929cc39676 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:34:30 +0200 Subject: Adding upstream version 1.7.3. Signed-off-by: Daniel Baumann --- dnsdist-web.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dnsdist-web.hh (limited to 'dnsdist-web.hh') diff --git a/dnsdist-web.hh b/dnsdist-web.hh new file mode 100644 index 0000000..c119eee --- /dev/null +++ b/dnsdist-web.hh @@ -0,0 +1,17 @@ +#pragma once + +#include "credentials.hh" + +void setWebserverAPIKey(std::unique_ptr&& apiKey); +void setWebserverPassword(std::unique_ptr&& password); +void setWebserverACL(const std::string& acl); +void setWebserverCustomHeaders(const boost::optional > customHeaders); +void setWebserverStatsRequireAuthentication(bool); +void setWebserverMaxConcurrentConnections(size_t); + +void dnsdistWebserverThread(int sock, const ComboAddress& local); + +void registerBuiltInWebHandlers(); +void clearWebHandlers(); + +std::string getWebserverConfig(); -- cgit v1.2.3