Skip to content

Commit

Permalink
dont use index on drives
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Sep 27, 2024
1 parent 6600ed7 commit 5a62ad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nginx-webdav/README.md
Original file line number Diff line number Diff line change
@@ -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.
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
2 changes: 2 additions & 0 deletions nginx-webdav/webdav.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ server {
location / {
charset utf-8;

index .drive_index.html;

#autoindex on;
#autoindex_exact_size off;
#autoindex_localtime on;
Expand Down

0 comments on commit 5a62ad6

Please sign in to comment.