diff --git a/conf/nginx.conf b/conf/nginx.conf index 1a25cdf..0e41766 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,10 +15,10 @@ location __PATH__/ { #try_files $uri $uri/ /bludit//bludit/index.php?$args; - #location __PATH__/bl-content/databases/ { deny all; } - #location __PATH__/bl-content/workspaces/ { deny all; } - #location __PATH__/bl-content/pages/ { deny all; } - #location __PATH__/bl-kernel/*.php { deny all; } + location __PATH__/bl-content/databases/ { deny all; } + location __PATH__/bl-content/workspaces/ { deny all; } + location __PATH__/bl-content/pages/ { deny all; } + location __PATH__/bl-kernel/*.php { deny all; } try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { @@ -31,6 +31,11 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $request_filename; } + location ~ \.(jpg|jpeg|gif|png|css|js|ico|svg|eot|ttf|woff|woff2|otf)$ { + access_log off; + expires 30d; + } + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }