From be9d100d5e5e1e6498e9000c341ae8f685ca544f Mon Sep 17 00:00:00 2001 From: Larrius Date: Fri, 21 Mar 2025 12:35:50 +0000 Subject: [PATCH] Add nginx.conf --- nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..42fbccc --- /dev/null +++ b/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + autoindex on; + autoindex_exact_size off; + autoindex_format html; + + auth_basic "Restricted Access"; + auth_basic_user_file /etc/nginx/.htpasswd; + } +} \ No newline at end of file