]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/dnsdistdist/dnsdist-web.hh
Merge pull request #11431 from jroessler-ox/docs-kskzskroll-update
[thirdparty/pdns.git] / pdns / dnsdistdist / dnsdist-web.hh
1 #pragma once
2
3 #include "credentials.hh"
4 #include "dnsdist-prometheus.hh"
5
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);
14
15 void dnsdistWebserverThread(int sock, const ComboAddress& local);
16
17 void registerBuiltInWebHandlers();
18 void clearWebHandlers();
19
20 std::string getWebserverConfig();
21
22 bool addMetricDefinition(const dnsdist::prometheus::PrometheusMetricDefinition& def);