Skip to content

Custom theme for Apache/Nginx AutoIndex - BaiduYun theme

Notifications You must be signed in to change notification settings

y2361547758/autoIndexBaidu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom theme for Apache/Nginx AutoIndex - BaiduYun theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages