Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.18 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.18 KB

Nginx AutoIndex - BaiduYun theme

Requirements

nginx with the xslt module.

Usage

/etc/nginx/default.d/autoindex.conf

location / {
    autoindex on;
    autoindex_format xml;

    xslt_stylesheet /path/to/root/directory/autoindex.xslt;
}
location /_plugin/ {
    alias /usr/lib64/nginx/plugin/;
}

/path/to/root/directory/

put autoindex.xslt, icon.css, icon image and other static resource in this path

custom

Inject some string

location / {
    # load custom style
    xslt_string_param style-custom '/__plugin/custom.css';
    # set footer link
    xslt_string_param custom-link 'rila.ren';
    # set footer Text
    xslt_string_param custom-desc 'Honoka';
}

Feature

  • Tap-friendly view.
  • Switch view between Detailed view and Icons view. (require JavaScript)
  • Remember every view of a dir, and inherit from parent dir. (require Cookies)

Reference

ngx_http_autoindex_module ngx_http_xslt_module