-
-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
static-file-server:
image: halverneus/static-file-server:latest
env_file:
- ./static_file_server/server.dev.env
ports:
- "127.0.0.1:1234:1234"
volumes:
- ./static_file_server/test_files:/web
#https://hub.docker.com/r/halverneus/static-file-server/
# Enables resource access from any domain.
CORS=false
# Enable debugging for troubleshooting. If set to 'true' this prints extra
# information during execution. IMPORTANT NOTE: The configuration summary is
# printed to stdout while logs generated during execution are printed to stderr.
DEBUG=true
# Optional Hostname for binding. Leave black to accept any incoming HTTP request
# on the prescribed port.
HOST=
# If assigned, must be a valid port number.
PORT=1234
# When set to 'true' the index.html file in the folder will be served. And
# the file list will not be served.
ALLOW_INDEX=false
# Automatically serve the index of file list for a given directory (default).
SHOW_LISTING=true
# Folder with the content to serve.
FOLDER=/web
# URL path prefix. If 'my.file' is in the root of $FOLDER and $URL_PREFIX is
# '/my/place' then file is retrieved with 'http://$HOST:$PORT/my/place/my.file'.
URL_PREFIX=
# Paths to the TLS certificate and key. If one is set then both must be set. If
# both set then files are served using HTTPS. If neither are set then files are
# served using HTTP.
TLS_CERT=
TLS_KEY=
# If TLS certificates are set then the minimum TLS version may also be set. If
# the value isn't set then the default minimum TLS version is 1.0. Allowed
# values include "TLS10", "TLS11", "TLS12" and "TLS13" for TLS1.0, TLS1.1,
# TLS1.2 and TLS1.3, respectively. The value is not case-sensitive.
TLS_MIN_VERS=
# List of accepted HTTP referrers. Return 403 if HTTP header `Referer` does not
# match prefixes provided in the list.
# Examples:
# 'REFERRERS=http://localhost,https://...,https://another.name'
# To accept missing referrer header, add a blank entry (start comma):
# 'REFERRERS=,http://localhost,https://another.name'
REFERRERS=
# Use key / code parameter in the request URL for access control. The code is
# computed by requested PATH and your key.
# Example:
# ACCESS_KEY=username
# To access your file, either access:
# http://$HOST:$PORT/my/place/my.file?key=username
# or access (md5sum of "/my/place/my.fileusername"):
# http://$HOST:$PORT/my/place/my.file?code=44356A355E89D9EE7B2D5687E48024B0
ACCESS_KEY=
Sorry the example is confusing, it just doesnt work for me
aslo didn't work:
docker run -d -v G:/demo_cmake/static_file_server/test_files/:/web -p 8080:8080
GlinZachariah
Metadata
Metadata
Assignees
Labels
No labels