Develop a compact and lightweight file directory index server based on gin
- Inspired by caddy file_server
PORT
: the port to listen on. default: 8080RELATIVE_PATH
: the path to serve. default:/
ROOT
: the root directory to serve. default:/share
AUTH
: enable authentication. default: falseAUTH_USER
: the username to use for authentication. default:admin
AUTH_PASS
: the password to use for authentication. default:admin
docker pull xmapst/gin-fancyindex
docker run -it -p 8080:8080 -v /share:/share xmapst/gin-fancyindex:latest
browser open http://localhost:8080