mirror of
https://github.com/nielsAD/autoindex.git
synced 2026-03-17 05:00:13 +01:00
b085cc951cbd9fa7b274c5ec586602323325d9a2
autoindex
Lightweight go web server that provides a searchable directory index. Optimized for handling large numbers of files (100k+) and remote file systems (with high latency) through a continously updated directory cache.
Features:
- Lightweight single-page application (
~8KB html/css/js) - Responsive design
- Recursive file search
- Directory cache (
sqlite) - Sitemap support
Usage
./autoindex [options]
| Flag | Type | Description |
|---|---|---|
-a |
string |
TCP network address to listen for connections |
-d |
string |
Database location |
-r |
string |
Root directory to serve |
-i |
string |
Refresh interval |
-forwarded |
bool |
Trust X-Real-IP and X-Forwarded-For headers |
-cached |
bool |
Serve everything from cache (rather than search/recursive queries only) |
Example
./autoindex -a=":4000" -i=5m -d=/tmp/autoindex.db -cached -r=/mnt/storage
Languages
Go
76.9%
JavaScript
11.2%
CSS
8.4%
HTML
3.5%