From 7a393fe91468b71a1abdc23a250cab21b2d9f829 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 3 Apr 2023 21:07:10 +0000 Subject: [PATCH] Update README.md --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 62c488b..0c646a5 100644 --- a/README.md +++ b/README.md @@ -523,26 +523,24 @@ php daemon.php setAdmin On ajoute/modifie dans le fichier `/etc/nginx/sites-enabled/xmpp.chalec.org.conf` : ``` -root /var/www/movim/public/index.php; +fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nginx_cache:100m inactive=60m; +fastcgi_cache_key "$scheme$request_method$host$request_uri"; -… +server { + + root /var/www/movim/public/index.php; -http { … - fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nginx_cache:100m inactive=60m; - fastcgi_cache_key "$scheme$request_method$host$request_uri"; -} -… + location /picture { + include fastcgi_params; -location /picture { - include fastcgi_params; - - add_header X-Cache $upstream_cache_status; - fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; - fastcgi_cache nginx_cache; - fastcgi_cache_key $request_method$host$request_uri; - fastcgi_cache_valid any 7d; + add_header X-Cache $upstream_cache_status; + fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; + fastcgi_cache nginx_cache; + fastcgi_cache_key $request_method$host$request_uri; + fastcgi_cache_valid any 7d; + } } ```