]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Docs
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 3 Feb 2025 13:57:34 +0000 (14:57 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2025 15:28:22 +0000 (16:28 +0100)
.github/actions/spell-check/expect.txt
DEVELOPMENT.md
pdns/recursordist/rec-rust-lib/docs-new-preamble-in.rst
pdns/recursordist/rec-rust-lib/generate.py
pdns/recursordist/rec-rust-lib/table.py

index 851f849ecb973d0e15b70bd6b897658f11dbfa5c..ec17629a36f608582a3d2e509b5f86f772abb8f8 100644 (file)
@@ -917,6 +917,7 @@ Novell
 nproxy
 NPTL
 NSes
+NSID
 nsid
 nsis
 nsrecord
@@ -1016,9 +1017,9 @@ pickchashed
 pickclosest
 pickhashed
 picknamehashed
-pickselfweighted
 pickrandom
 pickrandomsample
+pickselfweighted
 pickwhashed
 pickwrandom
 piddir
@@ -1498,6 +1499,7 @@ versionmodified
 Viala
 viewcode
 visitedlinkcolor
+Vixie
 vixie
 vla
 Voegeli
index ce518842409bb602fb2b24c51c54a24b431d02ef..8b5c147ee7a40434c921ef70632d13f1cfb09779 100644 (file)
@@ -46,7 +46,7 @@ make -nwk  | /path/to/compiledb -o- > compile_commands.json
 to generate the compilation database.
 For the authoritative server, the configure command is run in the top level directory, while the compiledb command should be run in the `pdns` subdirectory.
 
-# Seting up the LSP client
+# Setting up the LSP client
 
 Once the compilation database is generated, you can now move onto setting up an LSP client in your editor or IDE.
 
index 0220b5de17dcdc18e6600108fe16c30b8804bf34..7723373f06ead7da1852ee73d0952a3511721424 100644 (file)
@@ -536,6 +536,35 @@ For catalog zone members in a group, the forwarding parameters will be taken fro
 
 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
+
+   addresses: [] Sequence of SocketAddress
+   tls:
+     certificates: file containing full certificate chain in PEM format
+     key: file contaiing private key in PEM format
+
+
+A :ref:`setting-yaml-webservice.listen` section contains a sequence of `IncomingWSConfig`_, for example:
+
+.. code-block:: yaml
+
+  webservice:
+    listen:
+      - addresses: [127.0.0.1:8083, '[::]:8083']
+        tls:
+          certificate: fullchain.pem
+          key: keyfile.key
+      - addresses: [127.0.0.1:8084, '[::]:8084']
+
+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.
+
+
 The YAML settings
 -----------------
 
index cf9dfd1ea8d7a3ffb1f51ce8899298f5ef310cfc..b9ec2a71fc4deab753b53518598b3b4676bf439a 100644 (file)
@@ -185,6 +185,8 @@ def get_newdoc_typename(typ):
         return 'Sequence of `ProxyMapping`_'
     if typ == LType.ListForwardingCatalogZones:
         return 'Sequence of `ForwardingCatalogZone`_'
+    if typ == LType.ListIncomingWSConfigs:
+        return 'Sequence of `IncomingWSConfig`_'
     return 'Unknown2' + str(typ)
 
 def get_default_olddoc_value(typ, val):
index dbdcd4867a8b92849c69b592b1739fdaa0c33f2a..93600481b8ebef934b70e9111e89df11d152742e 100644 (file)
@@ -3210,8 +3210,8 @@ IP address for the webserver to listen on.
         'default' : '',
         'help' : 'XXXX',
         'doc' : '''
-XXXXX IP addresses for the webserver to listen on.
-If this setting has a non-default value, :ref:`setting-yaml-webservice.address`  :ref:`setting-yaml-webservice.port` and will be ignored.
+IP addresses and associated attributes for the webserver to listen on.
+If this setting has a non-default value, :ref:`setting-yaml-webservice.address` and :ref:`setting-yaml-webservice.port` will be ignored.
  ''',
         'skip-old': 'No equivalent old-style setting',
         'versionadded': '5.3.0',
@@ -3252,35 +3252,12 @@ Note that this option only applies to credentials stored in the configuration as
         'help' : 'Amount of logging in the webserver (none, normal, detailed)',
         'doc' : '''
 One of ``none``, ``normal``, ``detailed``.
-The amount of logging the webserver must do. 'none' means no useful webserver information will be logged.
-When set to 'normal', the webserver will log a line per request that should be familiar::
-
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 'GET /api/v1/servers/localhost/bla HTTP/1.1' 404 196
-
-When set to 'detailed', all information about the request and response are logged::
-
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e Request Details:
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e  Headers:
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   accept-encoding: gzip, deflate
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   accept-language: en-US,en;q=0.5
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   connection: keep-alive
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   dnt: 1
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   host: 127.0.0.1:8081
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   upgrade-insecure-requests: 1
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e  No body
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e Response details:
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e  Headers:
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   Connection: close
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   Content-Length: 49
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   Content-Type: text/html; charset=utf-8
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   Server: PowerDNS/0.0.15896.0.gaba8bab3ab
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e  Full body:
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e   <!html><title>Not Found</title><h1>Not Found</h1>
-  [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 'GET /api/v1/servers/localhost/bla HTTP/1.1' 404 196
-
-The value between the hooks is a UUID that is generated for each request. This can be used to find all lines related to a single request.
+The amount of logging the webserver must do. ``none`` means no useful webserver information will be logged.
+When set to ``normal``, the webserver will log a line per request::
+
+   Feb 03 14:54:00 msg="Request" subsystem="webserver" level="0" prio="Notice" tid="0" ts="1738590840.208" HTTPVersion="HTTP/1.1" method="GET" remote="[::1]:49880" respsize="5418" status="200" uniqueid="a31a280d-29de-4db8-828f-edc862eb8653" urlpath="/"
+
+When set to ``detailed``, all available information about the request and response is logged.
 
 .. note::
   The webserver logs these line on the NOTICE level. The :ref:`setting-loglevel` seting must be 5 or higher for these lines to end up in the log.