Skip to content

Nginx plus dashboard additions #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all 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 IP Addresses or CIDR blocks.

The following NginxProxy configuration allows access to the NGINX Plus dashboard from the IP Addresses `192.0.2.8` and
`192.0.2.0` and the CIDR block `198.51.100.0/24`:

```yaml
apiVersion: gateway.nginx.org/v1alpha1
kind: NginxProxy
metadata:
name: ngf-proxy-config
spec:
nginxPlus:
allowedAddresses:
- type: IPAddress
value: 192.0.2.8
- type: IPAddress
value: 192.0.2.0
- type: CIDR
value: 198.51.100.0/24
```

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 installation, manually create an NginxProxy resource, or edit an existing NginxProxy resource.
Loading
Loading