Kaynağa Gözat

Merge pull request #1 from gouthamravee/nginx-proxy-manager-update

Update README.md
pull/3175/head
Gouthaman Raveendran 2 yıl önce
committed by GitHub
ebeveyn
işleme
b5fa040e82
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: B5690EEEBB952194
1 değiştirilmiş dosya ile 7 ekleme ve 24 silme
  1. +7
    -24
      examples/reverse-proxies/nginx-proxy-manager/README.md

+ 7
- 24
examples/reverse-proxies/nginx-proxy-manager/README.md Dosyayı Görüntüle

@@ -26,23 +26,15 @@ Scheme: http
Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX
Forward Port: 81 Forward Port: 81


# Custom locations
# Add one custom location
Define location: /
Scheme: http
Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX
Forward Port: 81
Custom config:
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 50M;

# SSL # SSL
# Either 'Request a new certificate' or select an existing one # Either 'Request a new certificate' or select an existing one
SSL Certificate: matrix.DOMAIN or *.DOMAIN SSL Certificate: matrix.DOMAIN or *.DOMAIN
Force SSL: true Force SSL: true
HTTP/2 Support: true HTTP/2 Support: true

# Advanced
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 proxys configuration like this: Again, under the 'Proxy Hosts' page select `Add Proxy Host`, this time for your federation traffic. Apply the proxys configuration like this:
@@ -55,17 +47,6 @@ Scheme: http
Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX
Forward Port: 8449 Forward Port: 8449


# Custom locations
# Add one custom location
Define location: /
Scheme: http
Forward Hostname/IP: IP-ADDRESS-OF-YOUR-MATRIX
Forward Port: 8449
Custom config:
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 50M;

# SSL # SSL
# Either 'Request a new certificate' or select an existing one # Either 'Request a new certificate' or select an existing one
SSL Certificate: matrix.DOMAIN or *.DOMAIN SSL Certificate: matrix.DOMAIN or *.DOMAIN
@@ -74,7 +55,9 @@ HTTP/2 Support: true


# Advanced # Advanced
# Allows NPM to listen on the federation port # Allows NPM to listen on the federation port
Custom Nginx Configuration: listen 8448 ssl http2;
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.DOMAIN` or `jitsi.DOMAIN`, which would use the forwarding port `81`. 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.DOMAIN` or `jitsi.DOMAIN`, which would use the forwarding port `81`.

Yükleniyor…
İptal
Kaydet