|
@@ -39,7 +39,7 @@
|
|
|
#
|
|
|
# curl -k --key kea-client.key --cert kea-client.crt -X POST \
|
|
|
# -H Content-Type:application/json -d '{ "command": "list-commands" }' \
|
|
|
-# https://kea.example.org/kea
|
|
|
+# https://kea.example.org
|
|
|
#
|
|
|
# On some curl running on macOS the crypto library requires a PKCS#12
|
|
|
# bundle with the private key and the certificate as the cert argument.
|
|
@@ -52,7 +52,7 @@
|
|
|
#
|
|
|
# curl -k --cert kea-client.p12:kea -X POST \
|
|
|
# -H Content-Type:application/json -d '{ "command": "list-commands" }' \
|
|
|
-# https://kea.example.org/kea
|
|
|
+# https://kea.example.org
|
|
|
#
|
|
|
# nginx configuration starts here.
|
|
|
|
|
@@ -77,11 +77,12 @@ http {
|
|
|
# Enable verification of the client certificate.
|
|
|
ssl_verify_client on;
|
|
|
|
|
|
- # For URLs such as https://kea.example.org/kea, forward the
|
|
|
- # requests to http://127.0.0.1:8080.
|
|
|
- # Use the / location for URLs with no path.
|
|
|
- location /kea {
|
|
|
- proxy_pass http://127.0.0.1:8080;
|
|
|
+ # For the URL https://kea.example.org forward the
|
|
|
+ # requests to http://127.0.0.1:8000.
|
|
|
+ # Since kea-shell doesn't currently support URLs with paths we
|
|
|
+ # use location /
|
|
|
+ location / {
|
|
|
+ proxy_pass http://127.0.0.1:8000;
|
|
|
}
|
|
|
}
|
|
|
}
|