Skip to content

Commit

Permalink
Wrangler prod env and newer timestamp
Browse files Browse the repository at this point in the history
Introduce a prod environment to deploy to production using wrangler publish.

Update fly.toml and wrangler.toml with latest values for blocklists.
  • Loading branch information
ignoramous committed Jan 22, 2022
1 parent ac4cdbe commit 061001d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
4 changes: 2 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ NODE_ENV = "production"
CLOUD_PLATFORM = "fly"
LOG_LEVEL = "info"
CF_BLOCKLIST_URL = "https://dist.rethinkdns.com/blocklists/"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1638959365361"
TD_NODE_COUNT = "42112224"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1642484493505"
TD_NODE_COUNT = "40212525"
TD_PARTS = "2"
CF_DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query"
CF_BLOCKLIST_DOWNLOAD_TIMEOUT = "10000"
Expand Down
37 changes: 31 additions & 6 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,40 @@ webpack_config = "webpack.config.cjs"
[vars]
WORKER_TIMEOUT = 10000
CLOUD_PLATFORM = "cloudflare"
LOG_LEVEL = "info"
LOG_LEVEL = "debug"
CF_BLOCKLIST_DOWNLOAD_TIMEOUT = 5000
RUNTIME = "worker"
WORKER_ENV = "development"
CF_BLOCKLIST_URL = "https://cf.rethinkdns.com/blocklists/"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1642484493505"
CF_DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query"
TD_NODE_COUNT = 40212525
TD_PARTS = 2

##################
#------PROD------#
##################
# wrangler doesn't yet support Workers Services and the new "Environments"
# github.com/cloudflare/cloudflare-docs/pull/3175/files
# github.com/cloudflare/wrangler2/issues/27
# developers.cloudflare.com/workers/platform/environments
[env.prod]
name = "basic-unbound"
routes = [
"basic.rethinkdns.com/*",
"basic.bravedns.com/*",
]
# vars are not inherited
# workers/platform/environment-variables#environment-variables-via-wrangler
[env.prod.vars]
WORKER_TIMEOUT = 10000
CLOUD_PLATFORM = "cloudflare"
LOG_LEVEL = "debug"
CF_BLOCKLIST_DOWNLOAD_TIMEOUT = 5000
RUNTIME = "worker"
WORKER_ENV = "production"
CF_BLOCKLIST_URL = "https://cf.rethinkdns.com/blocklists/"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1638959365361"
CF_PROCESS_DNS_ON_DNSPARSER_EXCEPTION = false
CF_ON_INVALID_FLAG_STOPPROCESSING = true
CF_LATEST_BLOCKLIST_TIMESTAMP = "1642484493505"
CF_DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query"
TD_NODE_COUNT = 42112224
TD_NODE_COUNT = 40212525
TD_PARTS = 2
IS_AGGRESSIVE_CACHE_REQ = true

0 comments on commit 061001d

Please sign in to comment.