Software /
code /
prosody-modules
Diff
mod_http_status/README.md @ 5856:75dee6127829 draft
Merge upstream
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Tue, 06 Feb 2024 18:32:01 +0700 |
parent | 5702:e274431bf4ce |
line wrap: on
line diff
--- a/mod_http_status/README.md Tue Aug 29 23:51:17 2023 +0700 +++ b/mod_http_status/README.md Tue Feb 06 18:32:01 2024 +0700 @@ -13,3 +13,19 @@ } ``` +# Configuration + + +By default only access via localhost is allowed. This can be adjusted with `http_status_allow_ips`. The following example shows the default: + +``` +http_status_allow_ips = { "::1"; "127.0.0.1" } +``` + +Access can also be granted to one IP range via CIDR notation: + +``` +http_status_allow_cidr = "172.17.2.0/24" +``` + +The default for `http_status_allow_cidr` is empty.