From 9fbe5762411adaa22005a16a53341967229e3ea1 Mon Sep 17 00:00:00 2001 From: Daniel Edgar Date: Tue, 14 Oct 2025 11:17:41 -0400 Subject: [PATCH 1/2] Enable local access for NGINX Plus API Uncomment the allow directive for local NGINX Agent access. --- content/includes/config-snippets/enable-nplus-api-dashboard.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/includes/config-snippets/enable-nplus-api-dashboard.md b/content/includes/config-snippets/enable-nplus-api-dashboard.md index c43c9297f..550d55009 100644 --- a/content/includes/config-snippets/enable-nplus-api-dashboard.md +++ b/content/includes/config-snippets/enable-nplus-api-dashboard.md @@ -26,6 +26,7 @@ server { # To restrict access by network, uncomment and set your network: # allow 192.0.2.0/24; # replace with your network + # allow 127.0.0.1/32; # allow local NGINX Agent to call the NGINX Plus API to retrieve metrics # deny all; } From 66e99236136d90786efd4e76095c31661c252afb Mon Sep 17 00:00:00 2001 From: Daniel Edgar Date: Tue, 14 Oct 2025 11:24:44 -0400 Subject: [PATCH 2/2] Update comment for network access restriction Clarified comment on restricting network access for API. --- content/includes/config-snippets/enable-nplus-api-dashboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/includes/config-snippets/enable-nplus-api-dashboard.md b/content/includes/config-snippets/enable-nplus-api-dashboard.md index 550d55009..fb073ed6b 100644 --- a/content/includes/config-snippets/enable-nplus-api-dashboard.md +++ b/content/includes/config-snippets/enable-nplus-api-dashboard.md @@ -24,7 +24,7 @@ server { # Enable API in write mode api write=on; - # To restrict access by network, uncomment and set your network: + # To restrict access by network, uncomment the following lines and set your network: # allow 192.0.2.0/24; # replace with your network # allow 127.0.0.1/32; # allow local NGINX Agent to call the NGINX Plus API to retrieve metrics # deny all;