-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# blocky-list-downloader | ||
# blocky lists downloader | ||
Update lists without restarting [blocky](https://0xerr0r.github.io/blocky/) DNS. | ||
|
||
## Introduction | ||
|
||
## How it works | ||
|
||
## Configurations | ||
|
||
You can configure the most behaviors of *lists downloader* via environment variables. | ||
|
||
| Environment Variable | Default |Description | | ||
|-----------------------|---------|------------| | ||
| BLD_BLOCKY_URL | | Enable [refresh request](https://0xerr0r.github.io/blocky/swagger.html#operation--lists-refresh-post) to blocky. The base URL for *lists downloader* to send refresh requests. Use an empty string to disable refresh requests. | | ||
| BLD_DESTINATION_FOLDER | /web/downloaded | The location of aggregated lists. This should be under `BLD_WEB_FOLDER` thus blocky can read the files via the static-web-server. | | ||
| BLD_INITIAL_DELAY_SECONDS | 0 | Delay in seconds before the first download. | | ||
| BLD_INTERVAL_SECONDS | 86400 | Interval between two downloads. Set to 0 to run once then exit. | | ||
| BLD_LOG_LEVEL | INFO | Control how many logs generated by Gantry. Valid values are `NONE`, `ERROR`, `WARN`, `INFO`, `DEBUG` (case sensitive). | | ||
| BLD_NODE_NAME | | Add node name to logs. | | ||
| BLD_NOTIFICATION_APPRISE_URL | | Enable notification after each refresh with [apprise](https://github.com/djmaze/apprise-microservice). This must point to the notification endpoint, e.g. `http://apprise:8000/notify`. Use an empty string to disable notification. | | ||
| 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. | | ||
| 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-web-server. Use an empty string to disable watching. | | ||
| BLD_WEB_FOLDER | /web | The location which the static-web-server services. Use an empty string to disable the web server. | | ||
| BLD_WEB_PORT | 8080 | The port that static-web-server listens to. | | ||
|
||
## Caveats | ||
|
||
* No web UI | ||
|
||
Blocky lists downloader bases on a set of shell scripts. It does not provide any UI to edit lists. You need an additional service for lists editing. | ||
|
||
* No group management | ||
|
||
You still need to modify the blocky configuration file to edit groups. | ||
|
||
## Contacts | ||
|
||
If you have any problems or questions, please contact me through a [GitHub issue](https://github.com/shizunge/blocky-lists-downloader/issues). | ||
|
||
## Related projects | ||
|
||
You may also want to check my [blocky Postgresql dashboard](https://github.com/shizunge/blocky-postgresql). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# blocky lists downloader example | ||
|
||
`docker-compose.yml` demostrates how to configure lists downloader via environment variables, and to share volumes with a web UI for editing. | ||
`docker-compose.yml` demostrates how to configure *lists downloader* via environment variables, and to share volumes with a web UI for editing. | ||
|
||
`blocky-config.yml` demostrates how to define groups for blocky to read lists from the lists downloader. | ||
`blocky-config.yml` demostrates how to define groups for blocky to read lists from the *lists downloader*. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters