From: Petr Špaček Date: Tue, 24 Jul 2018 16:12:21 +0000 (+0200) Subject: Remove http:// from examples. X-Git-Tag: v2.4.1~5^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=338d1da0cf08221dc519896517f1787895f93f59;p=thirdparty%2Fknot-resolver.git Remove http:// from examples. We want to encourage users to use HTTPS everywhere. --- diff --git a/modules/http/README.rst b/modules/http/README.rst index 5a896bd3a..5a64b81c4 100644 --- a/modules/http/README.rst +++ b/modules/http/README.rst @@ -62,8 +62,8 @@ If you want to provide your own certificate and key, you're welcome to do so: key = 'mykey.key', } -The format of both certificate and key is expected to be PEM, e.g. equivallent to -the outputs of following: +The format of both certificate and key is expected to be PEM, e.g. equivalent to +the outputs of following: .. code-block:: bash @@ -82,7 +82,7 @@ The HTTP module has several built-in services to use. "``/stats``", "Statistics/metrics", "Exported metrics in JSON." "``/metrics``", "Prometheus metrics", "Exported metrics for Prometheus_" "``/feed``", "Most frequent queries", "List of most frequent queries in JSON." - "``/trace/:name/:type``", "Tracking", "Trace resolution of the query and return the verbose logs." + "``/trace/:name/:type``", "Tracking", "Trace resolution of the query and return the verbose logs." Enabling Prometheus metrics endpoint ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -137,7 +137,7 @@ The basic mode allows you to resolve a query and trace verbose logs (and message .. code-block:: bash - $ curl http://localhost:8053/trace/e.root-servers.net + $ curl https://localhost:8053/trace/e.root-servers.net [ 8138] [iter] 'e.root-servers.net.' type 'A' created outbound query, parent id 0 [ 8138] [ rc ] => rank: 020, lowest 020, e.root-servers.net. A [ 8138] [ rc ] => satisfied from cache @@ -190,7 +190,7 @@ Then you can query the API endpoint, or tail the WebSocket using curl. .. code-block:: bash - $ curl -k http://localhost:8053/health + $ curl -k https://localhost:8053/health {"state":"up","uptime":0} $ curl -k -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: localhost:8053/health" -H "Sec-Websocket-Key: nope" -H "Sec-Websocket-Version: 13" https://localhost:8053/health HTTP/1.1 101 Switching Protocols