From 2cb317b33a88b47cc764626fa43c46a1a465a8da Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 22 Mar 2022 12:20:37 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index dcf4656..0bd2dce 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,9 +19,13 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $request_filename; } - #location ~ ^__PATH__/((favicons|thumbnails)/.+)$ { - # try_files __PATH__/data/$1 =404; - #} + location ~ ^/(favicons|thumbnails)/.*$ { + try_files $uri /data/$uri; + } + + location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { + deny all; + } # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;