No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
nervo Subdirectory example in readme
See #1

And thanks to @likeit92 :)
Latest commit 5314a6c May 17, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css Add crypt & gz icons Mar 17, 2016
images/icons Add crypt & gz icons Mar 17, 2016
js Initial commit Sep 15, 2015
README.md Subdirectory example in readme May 17, 2016
footer.html Switch to manala Mar 17, 2016
header.html Initial commit Sep 15, 2015

README.md

Manala Nginx Autoindex Theme

Integration

Clone the repository into a root hidden .theme folder

git clone https://github.com/manala/nginx-autoindex-theme.git .theme

Add the following parameters to your nginx configuration

...
add_before_body /.theme/header.html;
add_after_body /.theme/footer.html;

autoindex_exact_size off;
autoindex on;
...

You can also handle subdirectoris this way

location /foobar {
    alias /usr/share/nginx/html/foobar/;

    sub_filter_once off;
    sub_filter '/.theme' '/foobar/.theme';

    add_before_body /foobar/.theme/header.html;
    add_after_body /foobar/.theme/footer.html;

    autoindex_exact_size off;
    autoindex on;
}

Inspiration

https://github.com/tuxy/nginx-indexer