Skip to content

Commit c6fe884

Browse files
committed
Add information on confuring NginxProxy resource for dashboard
1 parent 4577687 commit c6fe884

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

content/ngf/how-to/data-plane-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ spec:
361361
mode: ProxyProtocol
362362
trustedAddresses:
363363
- type: CIDR
364-
value "76.89.90.11/24"
364+
value: "76.89.90.11/24"
365365
EOF
366366
```
367367

content/ngf/how-to/monitoring/dashboard.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,30 @@ The dashboard will look like this:
3030
{{< img src="/ngf/img/nginx-plus-dashboard.png" alt="">}}
3131

3232
{{< note >}} The [API](https://nginx.org/en/docs/http/ngx_http_api_module.html) used by the dashboard for metrics is also accessible using the `/api` path. {{< /note >}}
33+
34+
### Configure dashboard access through NginxProxy
35+
36+
To allow access to the Nginx Plus dashboard from different sources than the default `127.0.0.1`, we can use the NginxProxy resource
37+
to allow access to other IPAddresses or CIDR blocks.
38+
39+
The following NginxProxy configuration allows access to the Nginx Plus dashboard from the IPAddresses `127.0.0.3` and
40+
`25.0.0.3` and the CIDR block `27.0.0.1/32`:
41+
42+
```yaml
43+
apiVersion: gateway.nginx.org/v1alpha1
44+
kind: NginxProxy
45+
metadata:
46+
name: ngf-proxy-config
47+
spec:
48+
nginxPlus:
49+
allowedAddresses:
50+
- type: IPAddress
51+
value: 127.0.0.3
52+
- type: IPAddress
53+
value: 25.0.0.3
54+
- type: CIDR
55+
value: 27.0.0.1/32
56+
```
57+
58+
For more information on configuring the NginxProxy resource, visit our [data plane configuration]({{< ref "data-plane-configuration.md" >}}) document
59+
which explains how to either configure an NginxProxy resource on install, manually create an NginxProxy resource, or edit an existing NginxProxy resource.

0 commit comments

Comments
 (0)