2023-11-20 02:07:08 +01:00
|
|
|
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;
|
|
|
|
|
2023-11-22 15:35:12 +01:00
|
|
|
server_name {{var_synapse_and_nginx_domain}};
|
2023-11-20 02:07:08 +01:00
|
|
|
|
2023-12-17 00:14:45 +01:00
|
|
|
ssl_certificate /etc/ssl/fullchains/{{var_synapse_and_nginx_domain}}.pem;
|
2023-11-22 15:35:12 +01:00
|
|
|
ssl_certificate_key /etc/ssl/private/{{var_synapse_and_nginx_domain}}.pem;
|
2023-11-20 02:07:08 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|