Procházet zdrojové kódy

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.
pull/5347/head
LunarFox před 1 měsícem
committed by GitHub
rodič
revize
3c6c901a3f
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: B5690EEEBB952194
1 změnil soubory, kde provedl 4 přidání a 12 odebrání
  1. +4
    -12
      examples/reverse-proxies/nginx-proxy-manager/README.md

+ 4
- 12
examples/reverse-proxies/nginx-proxy-manager/README.md Zobrazit soubor

@@ -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`.

Načítá se…
Zrušit
Uložit