File

mod_http_status/README.md @ 6130:5a0e47ad7d6b

mod_anti_spam: Gracefully handle failure to parse CIDR in IP RTBL This should prevent a traceback in case the IP address in the RTBL cannot be parsed (either due to a malformed address being published, or due to a bug in our parsing code).
author Matthew Wild <mwild1@gmail.com>
date Wed, 01 Jan 2025 11:48:19 +0000 (2 months ago)
parent 5702:e274431bf4ce
line wrap: on
line source
Prosody 0.12 added an API allowing modules to report their status. This
module allows reading these statuses via HTTP for use in monitoring.

```
$ curl http://prosody.localhost:5280/status
{
   "example.com" : {
      "c2s" : {
         "message" : "Loaded",
         "type" : "core"
      }
   }
}
```

# 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.