From ca7bca5a8b65ba415c3154f9ba06a143ba52533b Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 8 Apr 2020 08:29:37 -0500 Subject: http api: T2160: update syntax for api-restrict --- docs/appendix/http-api.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/appendix/http-api.rst b/docs/appendix/http-api.rst index 731ca072..827bcd9e 100644 --- a/docs/appendix/http-api.rst +++ b/docs/appendix/http-api.rst @@ -20,7 +20,7 @@ assume nginx is running at https://192.168.122.127. One can limit proxying to specific listen addresses/ports/server-names by defining a ``service https virtual-host ``, and setting ``service https -api virtual-host ``. +api-restrict virtual-host ``. .. code-block:: none @@ -28,13 +28,13 @@ api virtual-host ``. set service https virtual-host example listen-port 44302 set service https virtual-host example server-name example.net - set service https api virtual-host example + set service https api-restrict virtual-host example In this example, nginx will proxy only those requests to 192.168.122.127:44302 or example.net:44302 (assuming the DNS record is viable). Omitting any of listen-address, listen-port, or server-name, will leave appropriate defaults in the nginx directive. Multiple instances of -``service https api virtual-host`` may be set. +``service https api-restrict virtual-host`` may be set. Operational requests -------------------- -- cgit v1.2.3