}
t_fdm = unique_ptr<FDMultiplexer>(getMultiplexer(log));
-#if 0
- std::unique_ptr<RecursorWebServer> rws;
-#endif
t_fdm->addReadFD(threadInfo.getPipes().readToThread, handlePipeRequest);
if (threadInfo.isHandler()) {
-#if 0
- if (::arg().mustDo("webserver")) {
- SLOG(g_log << Logger::Warning << "Enabling web server" << endl,
- log->info(Logr::Info, "Enabling web server"));
- try {
- rws = make_unique<RecursorWebServer>(t_fdm.get());
- }
- catch (const PDNSException& e) {
- SLOG(g_log << Logger::Error << "Unable to start the internal web server: " << e.reason << endl,
- log->error(Logr::Critical, e.reason, "Exception while starting internal web server"));
- _exit(99);
- }
- }
-#endif
SLOG(g_log << Logger::Info << "Enabled '" << t_fdm->getName() << "' multiplexer" << endl,
log->info(Logr::Info, "Enabled multiplexer", "name", Logging::Loggable(t_fdm->getName())));
}
The forwarding definitions will be written into a file ``$api_dir/catzone.$zonename``. :ref:`setting-yaml-webservice.api_dir` must be defined, the directory must exist and be writable by the :program:`Recursor` process.
IncomingWSConfig
-^^^^^^^^^^^^^^^^^^^^^
+^^^^^^^^^^^^^^^^
As of version 5.3.0, an incoming web server configuration is defined as
.. code-block:: yaml
If no ``tls`` section is present, plaintext ``http`` connections are accepted on the listed addresses.
-If a ``tls`` section is present, clienst are required to use ``https`` to contact any of the address-port combinations listen in addresses. At the moment it is not possible to list additional properties of the TLS listener and encrypted key files cannot be used.
+If a ``tls`` section is present, clients are required to use ``https`` to contact any of the address-port combinations listen in addresses. At the moment it is not possible to list additional properties of the TLS listener and encrypted key files cannot be used.
The YAML settings
.flag("-I../../..")
.compile("settings");
- // lib.rs is genertated an take carte of by parent Makefile
+ // lib.rs is generated and take care of by parent Makefile
println!("cargo:rerun-if-changed=src/misc.rs");
println!("cargo:rerun-if-changed=src/web.rs");
}