|
|
@ -15,10 +15,10 @@ server {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
|
|
|
|
server_name {{ hostname_matrix }};
|
|
|
|
server_name {{ hostname_matrix }};
|
|
|
|
|
|
|
|
|
|
|
|
server_tokens off;
|
|
|
|
server_tokens off;
|
|
|
|
root /dev/null;
|
|
|
|
root /dev/null;
|
|
|
@ -30,8 +30,14 @@ server {
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
|
|
|
|
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
|
|
|
|
|
|
|
|
|
|
|
|
location /_matrix {
|
|
|
|
location /_matrix {
|
|
|
|
proxy_pass http://synapse:8008;
|
|
|
|
proxy_pass http://synapse:8008;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
# These are intentionally large.
|
|
|
|
|
|
|
|
# Note that Synapse enforces its own limits, which are smaller.
|
|
|
|
|
|
|
|
client_body_buffer_size 25M;
|
|
|
|
|
|
|
|
client_max_body_size 100M;
|
|
|
|
|
|
|
|
proxy_max_temp_file_size 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|