Skip to content

Commit 905bb53

Browse files
authored
Nginx plus dashboard additions (#155)
* Add information on confuring NginxProxy resource for dashboard * Replace api.md file with file on main * Add small feedback and use document address blocks
1 parent 4577687 commit 905bb53

File tree

3 files changed

+1022
-592
lines changed

3 files changed

+1022
-592
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 IP Addresses or CIDR blocks.
38+
39+
The following NginxProxy configuration allows access to the NGINX Plus dashboard from the IP Addresses `192.0.2.8` and
40+
`192.0.2.0` and the CIDR block `198.51.100.0/24`:
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: 192.0.2.8
52+
- type: IPAddress
53+
value: 192.0.2.0
54+
- type: CIDR
55+
value: 198.51.100.0/24
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 installation, manually create an NginxProxy resource, or edit an existing NginxProxy resource.

0 commit comments

Comments
 (0)