mirror of
https://github.com/nielsAD/autoindex.git
synced 2026-05-13 01:17:19 +02:00
3930884a6280e15d281c919d35caea30f1056a2c
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%