Static file service, provides HTTP access to static files.
docker run -it -d --restart=always \
-v /web:/static:ro \
-p 3000:3000 \
vicanso/static
STATIC_THREADS: worker threads for tokio, default is num cpusSTATIC_PATH: static file path, default is /static, if STATIC_PATH starts with https:// or http://, it will be s3 service, if STATIC_PATH starts with ftp://, it will be ftp service, if STATIC_PATH starts with mongodb://, it will be gridfs service.STATIC_LISTEN_ADDR: listen address, default is 127.0.0.1:3000STATIC_TIMEOUT: timeout, default is 30sSTATIC_COMPRESS_MIN_LENGTH: compress min length, default is 256STATIC_INDEX_FILE: index file, default is index.htmlSTATIC_AUTOINDEX: autoindex, default is falseSTATIC_CACHE_CONTROL: cache control, default is public, max-age=31536000, immutable, and html will be no-cacheSTATIC_CACHE_SIZE: cache size, default is 1024STATIC_CACHE_TTL: cache ttl, default is 10m, html files will not be cachedSTATIC_HTML_REPLACE_*: replace html content, STATIC_HTML_REPLACE_{{HOST}}=https://test.com means replace {{HOST}} to https://test.comSTATIC_FALLBACK_INDEX_404: use index html for 404 not found routeSTATIC_FALLBACK_HTML_404: use .html for 404 not found routeContent type
Image
Digest
sha256:9e5fcb809…
Size
37.7 MB
Last updated
3 months ago
docker pull vicanso/static