This is the easy server to publish files in directory with restriction by basic authentication.
!!! [Caution] Directory indexing is ON !!!
all of setting/configutation is written in .env
.
CONTAINER_NAME=serve_static_files
WEB_PORT_TO_EXPOSE=8081
BASICAUTH_USERID=userid
BASICAUTH_PASSWD=passwd
STATIC_PATH_IN_URL=/download
STATIC_PATH_TO_EXPOSE=/tmp/download
Each parameters are used for purpose of configuring these.
CONTAINER_NAME
: name of the containerWEB_PORT_TO_EXPOSE
: exposed port for web serverBASICAUTH_USERID
: userid of basic authenticationBASICAUTH_PASSWD
: password of basic authenticationSTATIC_PATH_IN_URL
: path of the URLSTATIC_PATH_TO_EXPOSE
: path of the directory to expose
$ docker-compose up --build -d;
MIT