Quellcode durchsuchen

Cache /.well-known/matrix files for longer

pull/92/head
Slavi Pantaleev vor 7 Jahren
Ursprung
Commit
119016e858
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. +6
    -1
      roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2

+ 6
- 1
roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 Datei anzeigen

@@ -41,7 +41,12 @@ server {


location /.well-known/matrix { location /.well-known/matrix {
root {{ matrix_static_files_base_path }}; 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; default_type application/json;
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
} }


Laden…
Abbrechen
Speichern