mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 20:01:04 +00:00
node ...js in README.md
This commit is contained in:
@@ -32,10 +32,10 @@ Cloudflare Gateway allows you to create custom rules to filter HTTP, DNS, and ne
|
|||||||
1. Clone this repository.
|
1. Clone this repository.
|
||||||
2. Run `npm install` to install dependencies.
|
2. Run `npm install` to install dependencies.
|
||||||
3. Copy `.env.example` to `.env` and fill in the values.
|
3. Copy `.env.example` to `.env` and fill in the values.
|
||||||
4. If this is a subsequent run, execute `cf_gateway_rule_delete.js` and `cf_list_delete.js` (in order) to delete old data.
|
4. If this is a subsequent run, execute `node cf_gateway_rule_delete.js` and `node cf_list_delete.js` (in order) to delete old data.
|
||||||
5. If you're on Linux and haven't downloaded any filters yourself, use the `get_recommended_filters.sh` script to download recommended filter lists (about 250 000 domains).
|
5. If you're on Linux and haven't downloaded any filters yourself, use the `get_recommended_filters.sh` script to download recommended filter lists (about 250 000 domains).
|
||||||
6. Run `cf_list_create.js` to create the lists in Cloudflare Gateway. This will take a while.
|
6. Run `node cf_list_create.js` to create the lists in Cloudflare Gateway. This will take a while.
|
||||||
7. Run `cf_gateway_rule_create.js` to create the firewall rule in Cloudflare Gateway.
|
7. Run `node cf_gateway_rule_create.js` to create the firewall rule in Cloudflare Gateway.
|
||||||
8. Profit!
|
8. Profit!
|
||||||
|
|
||||||
### Running in GitHub Actions
|
### Running in GitHub Actions
|
||||||
|
|||||||
Reference in New Issue
Block a user