Simple directory index download page built on nginx
  • JavaScript 63.1%
  • CSS 21.5%
  • HTML 9.2%
  • Dockerfile 6.2%
Find a file
Aroy b94e0f3276
All checks were successful
Build Docker Image / build (push) Successful in 51s
Validate Docker Compose / validate (push) Successful in 19s
Merge pull request 'Complete restructure to bundle with Vite' (#22) from dev into main
Reviewed-on: #22
2026-03-06 00:39:19 +01:00
.forgejo Update: build workflow to also build releases 2025-12-28 14:58:15 +01:00
.vscode Add: vs code workspace settings 2025-04-24 22:12:49 +02:00
assets Losless compressed banner image 2024-11-14 22:20:23 +01:00
public Refactor: move to vite build and update dependencies 2026-03-06 00:38:07 +01:00
src Fix: remove stale zero-md element before rendering new README 2026-03-06 00:38:07 +01:00
.dockerignore Refactor: move to vite build and update dependencies 2026-03-06 00:38:07 +01:00
.gitattributes Normalize EOL for all files that Git considers text files 2024-02-08 17:18:30 +01:00
.gitignore Add: node package lock files 2025-12-16 23:47:44 +01:00
bun.lock Add: missing bun.lock 2026-03-06 00:38:07 +01:00
default-rootless.conf Add 2 image variants (root & rootless) 2022-04-08 13:51:48 +02:00
default.nginx.conf Add: new Dockerfile for npm package installs 2025-12-16 23:47:06 +01:00
docker-compose.yml Add: restart unless stopped to compose file 2024-11-18 10:29:15 +01:00
Dockerfile Refactor: move to vite build and update dependencies 2026-03-06 00:38:07 +01:00
index.html Refactor: move to vite build and update dependencies 2026-03-06 00:38:07 +01:00
LICENSE adding license and readme 2016-02-12 08:58:41 +01:00
package.json Refactor: move to vite build and update dependencies 2026-03-06 00:38:07 +01:00
README.md Update: readme 2025-12-17 00:50:41 +01:00
renovate.json Migrate config renovate.json 2025-12-25 20:31:33 +00:00

ISO-Share

This web application is a very simple file browser which can be used effectively together with nginx's autoindex module.

ISO-Share file browser in action

A sample nginx configuration is also included which mounts file browser under root (/) and mounts files to be listed under /files path. Hence is the filesBaseUrl under

Using with docker

Mainly for demonstration purposes a docker image is also available here. In order to use this docker image, the volume which has to be served should be mounted under /opt/www/files/ and port 80 (root) or 8080 (rootless)) of container shall be mapped to a proper port on host. A proper run would look like:

root

docker run -p 8080:80 -v /path/to/my/files/:/opt/www/files/ git.aroy-art.com/aroy/iso-share:latest

rootless:

docker run -p 8080:8080 -v /path/to/my/files/:/opt/www/files/ git.aroy-art.com/aroy/iso-share:rootless-latest

With container up and running you can point your browser to IP of docker host with given port to view the files. For example with above run command assuming docker host having IP with 192.168.1.200 we have to navigate to this URL: http://192.168.1.200:8080

Be very careful with symlinks, they can expose very important files of system to outside world!

If you have symlinks inside files dir that you want to be able to browse too, the alias path where /files is served by nginx has to be changed to match the same path outside your docker container. Lets say I have a directory with path /home/myuser/files-to-serve/. Which has two directories named dir1 and dir2. where dir1 is nothing more than a symlink to dir2. In order to be able to browse dir1 (inside dir2) on file browser, following have to be done:

Inside default.conf this line

    alias /opt/www/files/;

shall be changed to

    alias /home/myuser/files-to-serve/;

And the mounting point is now /home/myuser/files-to-serve/ instead of /opt/www/files/.

Development notes

Build and Push docker image

Build image:

docker build -t git.aroy-art.com/aroy/iso-share:latest . -f Dockerfile

Push image:

docker image push git.aroy-art.com/aroy/iso-share:latest

Attribution

This is a fork from github.com/mohamnag/nginx-file-browser