node ...js in README.md

This commit is contained in:
mrrfv
2023-05-02 20:34:22 +02:00
committed by GitHub
parent 8baef2d0d6
commit 45f316802d
+3 -3
View File
@@ -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