pretty-directorylist/.env.example

48 lines
1.6 KiB
Bash

# Address the HTTP server binds to.
LISTEN_ADDR=:8080
# Directory on disk that is listed and served.
ROOT_DIR=./data
# Title shown in the page header and browser tab.
PAGE_TITLE=File List
# Optional subtitle shown under the page title. Leave empty to hide it.
PAGE_DESCRIPTION=
# If set, only requests with this Host header are served the directory
# listing app; all other hosts get a 404. Leave empty to serve on any host.
FILES_VHOST=
# How often (in seconds) the in-memory file index is fully rebuilt from
# disk. The index is also refreshed on-demand shortly after filesystem
# changes are detected (best-effort, via fsnotify).
CACHE_REFRESH_INTERVAL_SECONDS=30
# Maximum number of results returned by a single search request.
MAX_SEARCH_RESULTS=500
# gin mode: release, debug, or test.
GIN_MODE=release
# Optional: folder to also write application logs to (in addition to stdout).
LOG_FOLDER=
# Optional: DEBUG, INFO, WARN, ERROR (default INFO).
LOG_LEVEL=INFO
# If true, also starts a read-only rsync daemon that mirrors ROOT_DIR.
RSYNC_ENABLED=false
# Address the rsync daemon listens on. Port 873 is the rsync default but
# requires elevated privileges to bind on Linux; use a high port otherwise.
RSYNC_ADDR=:873
# Module name rsync clients use, e.g. rsync://host/<RSYNC_MODULE_NAME>.
RSYNC_MODULE_NAME=share
# Hostname shown to users in the "mirror with rsync" instructions on the
# page. Leave empty to use the hostname the browser used to reach the page
# (from the HTTP Host header) - set this if the rsync daemon is reachable
# under a different DNS name than the web UI.
RSYNC_PUBLIC_HOST=