3 #include "credentials.hh"
4 #include "dnsdist-prometheus.hh"
6 void setWebserverAPIKey(std::unique_ptr<CredentialsHolder>&& apiKey);
7 void setWebserverPassword(std::unique_ptr<CredentialsHolder>&& password);
8 void setWebserverACL(const std::string& acl);
9 void setWebserverCustomHeaders(const boost::optional<std::unordered_map<std::string, std::string> > customHeaders);
10 void setWebserverAPIRequiresAuthentication(bool);
11 void setWebserverDashboardRequiresAuthentication(bool);
12 void setWebserverStatsRequireAuthentication(bool);
13 void setWebserverMaxConcurrentConnections(size_t);
15 void dnsdistWebserverThread(int sock, const ComboAddress& local);
17 void registerBuiltInWebHandlers();
18 void clearWebHandlers();
20 std::string getWebserverConfig();
22 bool addMetricDefinition(const dnsdist::prometheus::PrometheusMetricDefinition& def);