Mercurial > prosody-modules
comparison mod_http_status/README.md @ 5679:e274431bf4ce
mod_http_status: Add IP allowlisting capabilities
Based on mod_http_openmetrics
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 25 Oct 2023 17:18:50 +0200 |
| parents | 6af2d74daa15 |
| children |
comparison
equal
deleted
inserted
replaced
| 5678:0cffeff2cd1d | 5679:e274431bf4ce |
|---|---|
| 11 } | 11 } |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 ``` | 14 ``` |
| 15 | 15 |
| 16 # Configuration | |
| 17 | |
| 18 | |
| 19 By default only access via localhost is allowed. This can be adjusted with `http_status_allow_ips`. The following example shows the default: | |
| 20 | |
| 21 ``` | |
| 22 http_status_allow_ips = { "::1"; "127.0.0.1" } | |
| 23 ``` | |
| 24 | |
| 25 Access can also be granted to one IP range via CIDR notation: | |
| 26 | |
| 27 ``` | |
| 28 http_status_allow_cidr = "172.17.2.0/24" | |
| 29 ``` | |
| 30 | |
| 31 The default for `http_status_allow_cidr` is empty. |
