mod_net_multiplex

This module enables Prosody to use the same port(s) for multiple protocols, eg XMPP and HTTP.

Configuration

-- Global section
modules_enabled = {
    -- Other modules
    "net_multiplex";
}
ports = { 8080 } -- Unencrypted TCP port
ssl_ports = { 8443 } -- Direct TLS, like HTTPS etc

Usage

See documentation on port multiplexing and general port and network configuration.