mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
removed hardcoded strings and added constants
This commit is contained in:
@@ -19,3 +19,15 @@ export const API_HOST = "https://api.cloudflare.com/client/v4";
|
||||
export const DRY_RUN = !!parseInt(process.env.DRY_RUN, 10);
|
||||
|
||||
export const FAST_MODE = !!parseInt(process.env.FAST_MODE, 10);
|
||||
|
||||
export const PROCESSING_FILENAME = {
|
||||
ALLOWLIST: "allowlist.txt",
|
||||
BLOCKLIST: "blocklist.txt",
|
||||
OLD_ALLOWLIST: "whitelist.csv",
|
||||
OLD_BLOCKLIST: "input.csv",
|
||||
};
|
||||
|
||||
export const LIST_TYPE = {
|
||||
ALLOWLIST: "allowlist",
|
||||
BLOCKLIST: "blocklist",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user