Nginx autoindex, refined

Your files.
Better presented.

NAIS turns the default nginx directory listing into a fast, focused, and modern file browser without changing how nginx works.

curl -fsSL https://meghdadfadaee.github.io/nais/setup.sh | sh
files.example.com/releases/
Index of /releases/
Lightweight. No framework.
3small assets
1install command
0runtime dependencies
100%nginx native
Why NAIS

A directory listing people can actually use.

Small additions that make browsing and sharing files noticeably better.

01

Clear at a glance

Folders, parent navigation, and files use distinct colors so every directory is easy to scan.

02

Copy every link

Collect all file URLs from the current directory with one click.

03

Build playlists

Export media links as a ready-to-open playlist directly from the listing.

04

Setup that respects nginx

The installer detects common layouts, validates with nginx -t, and restores prior configuration if anything fails.

Get started

From default to polished in one command.

Run the installer, answer four short prompts, and NAIS handles the assets, nginx configuration, validation, and reload.

  • HTTP or optional HTTPS configuration
  • Automatic nginx include detection
  • Safe validation and rollback

install nais

$ curl -fsSL https://meghdadfadaee.github.io/nais/setup.sh | sh

Server name: files.example.com
Root path: /srv/files
Assets path: /var/www/nais-assets
Certificates path (optional):

 Downloading NAIS assets...
 Validating nginx configuration...
 NAIS configured successfully.

Make the simple thing look good.

A focused autoindex theme, built from plain CSS and JavaScript.

Explore on GitHub