From 73f8ca75b34c1aa36a0baeddc9de420d6a4d47c3 Mon Sep 17 00:00:00 2001 From: LunarFox <50801666+jiawei2912@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:32:19 +0800 Subject: [PATCH] Update readme for NPM NPM "Proxy Hosts" page is only for http/https 80/443 - it is not possible to add a name such as "matrix.example.com:port". Instead, the Streams page might work for what is intended here (federation traffic) - to proxy stream anything on 8448 to 8449. --- .../nginx-proxy-manager/README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/examples/reverse-proxies/nginx-proxy-manager/README.md b/examples/reverse-proxies/nginx-proxy-manager/README.md index 1047ed615..99a7c42cd 100644 --- a/examples/reverse-proxies/nginx-proxy-manager/README.md +++ b/examples/reverse-proxies/nginx-proxy-manager/README.md @@ -44,27 +44,19 @@ Custom Nginx Configuration: client_max_body_size 50M; ``` -Again, under the 'Proxy Hosts' page select `Add Proxy Host`, this time for your federation traffic. Apply the proxy's configuration like this: +Then, under the 'Streams' page select `Add Stream`, this time for your federation traffic. Apply the configuration like this: ```md # Details # Matrix Federation proxy config -Domain Names: matrix.example.com:8448 -Scheme: http -Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX +Incoming Port: 8448 +Forward Host/IP: IP-ADDRESS-OF-YOUR-MATRIX Forward Port: 8449 +Protocols: TCP # SSL # Either 'Request a new certificate' or select an existing one SSL Certificate: matrix.example.com or *.example.com -Force SSL: true -HTTP/2 Support: true - -# Advanced -# Allows NPM to listen on the federation port -Custom Nginx Configuration: - listen 8448 ssl http2; - client_max_body_size 50M; ``` Also note, NPM would need to be configured for whatever other services you are using. For example, you would need to create additional proxy hosts for `element.example.com` or `jitsi.example.com`, which would use the forwarding port `81`.