From 70fc1e5730aaf8327877d9d47a190e83bba26ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Fri, 1 May 2020 16:29:15 +0300 Subject: [PATCH] Added more options for basic auth --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8e793c2..16987b9 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,11 @@ For improved security, authentication, and HTTPS support, we can run the script # serve directory listing location = / { + # HTTP Auth Just For POST Requests (This will allow users toread files but they won't be able to upload or delete anything) + # limit_except GET HEAD { + # auth_basic "Log in with username 'user' to access files"; + # auth_basic_user_file /var/www/femtoshare/.htpasswd; + # } proxy_pass http://127.0.0.1:8000; client_max_body_size 1000M; }