From befd33ed15bb16fd1ef2c3bbbddde219de35b3a9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 21 Feb 2021 14:37:01 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 839822e..e1990ac 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -20,6 +20,15 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $request_filename; } + location ~ ^__PATH__/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; + } + location ~ ^__PATH__/ws/ { proxy_pass http://127.0.0.1:__PORT__; proxy_http_version 1.1;