27 lines
665 B
Text
27 lines
665 B
Text
![]() |
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
|
|
||
|
## For the federation port
|
||
|
listen 8448 ssl http2 default_server;
|
||
|
listen [::]:8448 ssl http2 default_server;
|
||
|
|
||
|
server_name {{var_synapse_with_nginx_domain}};
|
||
|
|
||
|
ssl_certificate /etc/ssl/certs/{{var_synapse_with_nginx_domain}}.pem;
|
||
|
ssl_certificate_key /etc/ssl/private/{{var_synapse_with_nginx_domain}}.pem;
|
||
|
|
||
|
location ~ ^(/_matrix|/_synapse/client) {
|
||
|
proxy_pass http://localhost:8008;
|
||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header Host $host;
|
||
|
|
||
|
client_max_body_size 50M;
|
||
|
|
||
|
proxy_http_version 1.1;
|
||
|
}
|
||
|
}
|