From 5a62ad6c4cedcb02eba8d351b5ced120f0b1651d Mon Sep 17 00:00:00 2001 From: rgaudin Date: Fri, 27 Sep 2024 11:21:08 +0000 Subject: [PATCH] dont use index on drives --- nginx-webdav/README.md | 4 +++- nginx-webdav/webdav.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nginx-webdav/README.md b/nginx-webdav/README.md index 60461433..718287f4 100644 --- a/nginx-webdav/README.md +++ b/nginx-webdav/README.md @@ -1,3 +1,5 @@ # nginx-webdav -Simple nginx image for serving static files over HTTP and managing them using WebDAV using `USERNAME` and `PASSWORD` environ variables. `NAME` variable allows customizing the displayed name/title. \ No newline at end of file +Simple nginx image for serving static files over HTTP and managing them using WebDAV using `USERNAME` and `PASSWORD` environ variables. `NAME` variable allows customizing the displayed name/title. + +`index`.html is not used as index, as the goal is to list files. If an index is actually wanted, use a `.drive_index.html` file diff --git a/nginx-webdav/webdav.conf b/nginx-webdav/webdav.conf index 1061e3ab..d4c5913a 100644 --- a/nginx-webdav/webdav.conf +++ b/nginx-webdav/webdav.conf @@ -9,6 +9,8 @@ server { location / { charset utf-8; + index .drive_index.html; + #autoindex on; #autoindex_exact_size off; #autoindex_localtime on;