This is a very simple, hacky theme for nginx's fancy index module.
There's an optional automatic dark theme in the stylesheet.
Anybody who is half-decent with CSS and such can clean this up, but it works well as is.
This is set for password protected directories.
location / {
try_files $uri $uri/ =404;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
fancyindex on;
fancyindex_exact_size off;
fancyindex_css_href /assets/style.css;
fancyindex_ignore assets secret readme.md;
fancyindex_time_format "%b %y";
fancyindex_header /assets/header.html;
fancyindex_footer /assets/footer.html;
fancyindex_show_path on;
}
Enjoy!