From a2d42175b07974f659972dec31f50a1661f55745 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Mon, 22 Jan 2024 10:35:38 -0800 Subject: [PATCH] Update words for static web server --- README.md | 2 +- src/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 586df52..a348ae5 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ You can configure the most behaviors of *lists downloader* via environment varia | BLD_POST_DOWNLOAD_CMD | | A command or function running after downloading an aggregated list. The first argument will be the path to the aggregated file, i.e. you command will be eval as `your_command `. This can be used to fix problems in the lists before the upstream maintainer fixing it. | | BLD_SOURCES_FOLDER | /sources | The location to read sources lists. The files contains URLs where to download the lists of domains. Use an empty string to disable watching. | | BLD_WATCH_FOLDER | /web/watch | The location of user defined lists of domains. *lists downloader* watches changes in this folder and send refresh requests to blocky. This should be under `BLD_WEB_FOLDER` thus blocky can read the files via the static file server. Use an empty string to disable watching. | -| BLD_WEB_FOLDER | /web | The location which the static file server services. Use an empty string to disable the web server. | +| BLD_WEB_FOLDER | /web | The location which the static file server serves. Use an empty string to disable the web server. | | BLD_WEB_PORT | 8080 | The port that static-web-server listens to. | ## Caveats diff --git a/src/entrypoint.sh b/src/entrypoint.sh index 6296710..3b856ea 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -51,7 +51,7 @@ start_web_server() { local WEB_FOLDER="${1}" local WEB_PORT="${2:-8080}" [ -z "${WEB_FOLDER}" ] && log INFO "Skip running web server. WEB_FOLDER is empty." && return 1 - log INFO "Start static-web-server that services ${WEB_FOLDER}" + log INFO "Start static-web-server that serves ${WEB_FOLDER}" static-web-server --port="${WEB_PORT}" --root="${WEB_FOLDER}" --log-level=warn --compression=false }