location / {
autoindex on;
autoindex_format xml;
xslt_stylesheet /path/to/root/directory/autoindex.xslt;
}
location /_plugin/ {
alias /usr/lib64/nginx/plugin/;
}
put autoindex.xslt
, icon.css
, icon image and other static resource in this path
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';
}
- 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)