summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'https.cpp')
-rw-r--r--https.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/https.cpp b/https.cpp
index a5aa118..0cbce8e 100644
--- a/https.cpp
+++ b/https.cpp
@@ -632,12 +632,14 @@ namespace HTTPS {
Server::Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& plugins, Statistics& statistics)
: ::Server(config, ioc, socket, plugins, statistics)
, m_certificates_timer(ioc, boost::asio::chrono::seconds(certificates_timer_seconds))
+#if 0 // problem: at this point, privileges are dropped and access to certbot keys is limited. File re-load fails with exception.
, m_certificates_timer_callback {
[&](const boost::system::error_code& error){
reload_certificates();
m_certificates_timer.expires_at(m_certificates_timer.expires_at() + boost::asio::chrono::seconds(certificates_timer_seconds));
m_certificates_timer.async_wait(m_certificates_timer_callback);
}}
+#endif
{
load_certificates(); // load initially