diff options
author | FUJII Ryota <rf@readonly.xyz> | 2019-02-23 16:57:54 +0900 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2019-02-25 19:55:27 -0800 |
commit | 4a400951226da20f05472504a5e992981298734e (patch) | |
tree | 9504a651268113f5b4d47399a36320cf42a93648 /docker/etc/nginx | |
parent | 39e579e427d1d032faa15f23023b72c304d1a43e (diff) |
Docker: Forbid access to the data directory
Diffstat (limited to 'docker/etc/nginx')
-rw-r--r-- | docker/etc/nginx/nginx.conf | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |