From 4a400951226da20f05472504a5e992981298734e Mon Sep 17 00:00:00 2001 From: FUJII Ryota Date: Sat, 23 Feb 2019 16:57:54 +0900 Subject: Docker: Forbid access to the data directory --- docker/etc/nginx/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docker/etc') diff --git a/docker/etc/nginx/nginx.conf b/docker/etc/nginx/nginx.conf index e05c1f88..fcc9a9aa 100644 --- a/docker/etc/nginx/nginx.conf +++ b/docker/etc/nginx/nginx.conf @@ -44,6 +44,10 @@ http { include fastcgi_params; } + location ~ /data { + return 404; + } + location ~* ^.+\.(log|sqlite)$ { return 404; } -- cgit v1.2.3