Cache /.well-known/matrix files for longer

master
Slavi Pantaleev 2019-02-05 13:06:17 +02:00
parent b540427974
commit 119016e858
1 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,12 @@ server {
location /.well-known/matrix {
root {{ matrix_static_files_base_path }};
expires 1m;
{#
A somewhat long expires value is used to prevent outages
in case this is unreachable due to network failure or
due to the base domain's server completely dying.
#}
expires 4h;
default_type application/json;
add_header Access-Control-Allow-Origin *;
}