summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorFUJII Ryota <rf@readonly.xyz>2019-02-23 16:57:54 +0900
committerfguillot <fred@kanboard.net>2019-02-25 19:55:27 -0800
commit4a400951226da20f05472504a5e992981298734e (patch)
tree9504a651268113f5b4d47399a36320cf42a93648 /docker
parent39e579e427d1d032faa15f23023b72c304d1a43e (diff)
Docker: Forbid access to the data directory
Diffstat (limited to 'docker')
-rw-r--r--docker/etc/nginx/nginx.conf4
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;
}