Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gibatronic/ngx-superbindex
Like ngx-autoindex, but superb!
https://github.com/gibatronic/ngx-superbindex
autoindex fancyindex index nginx ngx-autoindex
Last synced: about 1 month ago
JSON representation
Like ngx-autoindex, but superb!
- Host: GitHub
- URL: https://github.com/gibatronic/ngx-superbindex
- Owner: gibatronic
- License: mit
- Created: 2016-07-31T17:44:45.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T10:53:05.000Z (about 2 months ago)
- Last Synced: 2024-11-01T11:20:28.246Z (about 2 months ago)
- Topics: autoindex, fancyindex, index, nginx, ngx-autoindex
- Language: JavaScript
- Homepage:
- Size: 563 KB
- Stars: 113
- Watchers: 4
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ngx-superbindex
Like [ngx-autoindex](http://nginx.org/en/docs/http/ngx_http_autoindex_module.html), but superb!
* Single, standalone file
* Automatic light-dark theme
* Colors by [base16](http://chriskempson.com/projects/base16/)
* Monospaced type
* Minimal UI
* Search as you type
* Easily override colors through parameters
* Works in every modern browser and gracefully degrades in Internet Explorer and Safari## Requirements
[nginx](http://nginx.org/) with the [xslt](http://nginx.org/en/docs/http/ngx_http_xslt_module.html) module. On Mac with [Homebrew](http://brew.sh/) it's as easy as:
```bash
brew tap denji/nginx
brew install nginx-full --with-xslt
```## Usage
1. Download [`superbindex.xslt`](https://github.com/gibatronic/ngx-superbindex/releases/latest) into your root directory.
2. Add the following lines to your `nginx.conf` location:
```nginx
location / {
autoindex on;
autoindex_format xml;xslt_stylesheet /path/to/root/directory/superbindex.xslt;
}
```3. Restart nginx with `nginx -s reload` and *voilà*!
## Color theme
A different color theme may be used by adding the following parameters:
```nginx
location / {
xslt_string_param color-base00 '#002635';
xslt_string_param color-base07 '#fafaf8';
xslt_string_param color-base0D '#5dd7b9';
xslt_string_param color-base0E '#9a70a4';
}
```Browse other themes here: [base16 scheme repositories](https://github.com/chriskempson/base16#scheme-repositories)