Skip to content

Commit

Permalink
Update words for static web server
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Jan 22, 2024
1 parent 7a11fc6 commit a2d4217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file_path>`. 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
Expand Down
2 changes: 1 addition & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a2d4217

Please sign in to comment.