Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 985 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 985 Bytes

Minimal Fancy Theme

This is a very simple, hacky theme for nginx's fancy index module.

There's an optional automatic dark theme in the stylesheet.

screenshot

Anybody who is half-decent with CSS and such can clean this up, but it works well as is.

NGINX Config

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!