Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/ngf/how-to/data-plane-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ spec:
mode: ProxyProtocol
trustedAddresses:
- type: CIDR
value "76.89.90.11/24"
value: "76.89.90.11/24"
EOF
```

Expand Down
27 changes: 27 additions & 0 deletions content/ngf/how-to/monitoring/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,30 @@ The dashboard will look like this:
{{< img src="/ngf/img/nginx-plus-dashboard.png" alt="">}}

{{< 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 >}}

### Configure dashboard access through NginxProxy

To allow access to the Nginx Plus dashboard from different sources than the default `127.0.0.1`, we can use the NginxProxy resource
to allow access to other IPAddresses or CIDR blocks.

The following NginxProxy configuration allows access to the Nginx Plus dashboard from the IPAddresses `127.0.0.3` and
`25.0.0.3` and the CIDR block `27.0.0.1/32`:

```yaml
apiVersion: gateway.nginx.org/v1alpha1
kind: NginxProxy
metadata:
name: ngf-proxy-config
spec:
nginxPlus:
allowedAddresses:
- type: IPAddress
value: 127.0.0.3
- type: IPAddress
value: 25.0.0.3
- type: CIDR
value: 27.0.0.1/32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we're actually using these addresses, I think we're limited to the addresses in RFC 5737, "IPv4 Address Blocks Reserved for Documentation"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, didn't know this was a thing, made the change

```

For more information on configuring the NginxProxy resource, visit our [data plane configuration]({{< ref "data-plane-configuration.md" >}}) document
which explains how to either configure an NginxProxy resource on install, manually create an NginxProxy resource, or edit an existing NginxProxy resource.
Loading
Loading