Skip to content

Commit ca12180

Browse files
authored
feat: Enable local access for NGINX Plus API (#1300)
Clarified comment on restricting network access for API.
1 parent 053ce4d commit ca12180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/includes/config-snippets/enable-nplus-api-dashboard.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ server {
2424
# Enable API in write mode
2525
api write=on;
2626
27-
# To restrict access by network, uncomment and set your network:
27+
# To restrict access by network, uncomment the following lines and set your network:
2828
# allow 192.0.2.0/24; # replace with your network
29+
# allow 127.0.0.1/32; # allow local NGINX Agent to call the NGINX Plus API to retrieve metrics
2930
# deny all;
3031
}
3132

0 commit comments

Comments
 (0)