# HTTP Authorization Configuration

HTTP Authorization provides yet another method for authorization. NanoMQ will send an HTTP POST request in the format as configured to the target HTTP server when receiving CONNECT packets from MQTT clients, and relies on the return code of HTTP POST for the client's authorization. It enables extensive authorization with external HTTP service.


For now, HTTP Authorization only supports MQTT CONNECT, will add support for PUBLISH & SUBSCRIBE in the future. Please post an issue if you need further support urgently.

# Configuration Example

# Start NanoMQ

Start NanoMQ and specify the path to the configuration path.

$ nanomq start --conf path/to/nanomq.conf

If you are using the KV format, start NanoMQ with the command below:

$ nanomq start --old_conf path/to/nanomq_old.conf