Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
matrix:conduwuit [2025/03/11 08:39] – [Reverse proxy] willy | matrix:conduwuit [2025/03/11 08:45] (current) – [Reverse proxy] willy | ||
---|---|---|---|
Line 82: | Line 82: | ||
server { | server { | ||
server_name chat.mydomain.com; | server_name chat.mydomain.com; | ||
+ | # Port 8443 goes to external connection (internet) | ||
listen 8443 ssl; | listen 8443 ssl; | ||
+ | # Port 443 is used for internal connections (home) | ||
listen 443 ssl; | listen 443 ssl; | ||
http2 on; | http2 on; | ||
Line 94: | Line 96: | ||
location ~ ^(/ | location ~ ^(/ | ||
+ | # The $request_uri is MANDATORY to avoid URI being modifyed by NGINX | ||
proxy_pass | proxy_pass | ||
proxy_set_header | proxy_set_header | ||
Line 102: | Line 105: | ||
proxy_http_version | proxy_http_version | ||
} | } | ||
+ | # This is needed for federation | ||
location / | location / | ||
default_type | default_type | ||
Line 108: | Line 111: | ||
return | return | ||
} | } | ||
+ | # Enable snail sync for Element X and client access info in general | ||
location / | location / | ||
default_type | default_type |