X3NOOO / autoindex_theme

Custom theme for nginx autoindex

Home Page:https://files.ksenon.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoindex_theme

Custom themes for nginx autoindex

Live preview

Live preview is avaliable here.

Installation

  1. git clone https://github.com/X3NOOO/autoindex_theme /path_to_your_website/.autoindex_theme
  2. Add the following lines to your nginx configuration file:
autoindex on;
add_before_body /.autoindex_theme/before.html;
sub_filter '<html>' '';
sub_filter '<body>' '';
sub_filter '<hr>' '';
sub_filter '</pre><hr></body>' '</pre></body>';
sub_filter_once on;
location / {
        try_files $uri $uri/ =404;
}
error_page 404 /.autoindex_theme/404.html;

About

Custom theme for nginx autoindex

https://files.ksenon.net

License:GNU Affero General Public License v3.0


Languages

Language:HTML 55.2%Language:CSS 44.8%