/Nginx-Fancyindex-Theme

A responsive theme for Nginx Fancyindex module. Minimal, modern and simple. Comes with a search form, aims to handle thousands of files without any problems.

Primary LanguageCSSMIT LicenseMIT

Nginx-Fancyindex-Theme

A responsive theme for Nginx Fancyindex module. Minimal, modern and simple. Comes with a search form, aims to handle thousands of files without any problems.

The fancyindex module can be found here.

made-for-nginx

Usage

  1. Make sure you have the fancyindex module compiled with nginx, either by compiling it yourself or installing nginx via the full distribution (paquet nginx-extras).
  2. Include the content of fancyindex.conf in your location directive (location / {.....}) in your nginx config (usually nginx.conf).
  3. Move the Nginx-Fancyindex-Theme/ folder to the root of the site directory.
  4. Restart/reload nginx.
  5. Check that it's working, and enjoy!

Configuration

A standard config looks something like this:

fancyindex on;
fancyindex_localtime on;
fancyindex_exact_size off;
# Specify the path to the header.html and foother.html files (server-wise)
fancyindex_header "/Nginx-Fancyindex-Theme/header.html";
fancyindex_footer "/Nginx-Fancyindex-Theme/footer.html";
# Ignored files will not show up in the directory listing, but will still be public.
fancyindex_ignore "examplefile.html";
# Making sure folder where these files are do not show up in the listing.
fancyindex_ignore "Nginx-Fancyindex-Theme";
# Maximum file name length in bytes, change as you like.
fancyindex_name_length 255;

Examples

Showing a list of files (without search):

Demo #2


Filter a list of files (with search):

Demo #1


Filter a list of directories (with search):

Demo #3

📜 License ? GitHub license

MIT Licensed (file LICENSE). © Lilian Besson, 2016.

Maintenance Ask Me Anything ! Analytics

ForTheBadge built-with-swag ForTheBadge uses-js ForTheBadge uses-html ForTheBadge uses-css ForTheBadge uses-badges ForTheBadge uses-git