From 433eb86b4d464e2e06b860208047d8086b223069 Mon Sep 17 00:00:00 2001 From: ciiiii Date: Sun, 5 Mar 2023 23:23:40 +0800 Subject: [PATCH] Migrate to wrangler2 --- .github/workflows/deploy.yaml | 2 +- wrangler.toml | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5e962f9..0f2f622 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -20,7 +20,7 @@ jobs: node-version: "12.x" - run: npm install - name: Publish - uses: cloudflare/wrangler-action@1.2.0 + uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CF_API_TOKEN }} env: diff --git a/wrangler.toml b/wrangler.toml index 5bff45b..52fd98a 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,15 +1,7 @@ name = "cloudflare-docker-proxy" -type = "webpack" - -account_id = "" workers_dev = true -route = "" -zone_id = "" - -webpack_config = "webpack.config.js" compatibility_date = "2021-12-07" - [dev] ip = "0.0.0.0" port = 8787 @@ -23,5 +15,5 @@ TARGET_UPSTREAM="" [env.dev.vars] MODE="debug" -LOCAL_ADDRESS="http://192.168.50.160:8787" +LOCAL_ADDRESS="http://192.168.10.102:8787" TARGET_UPSTREAM="https://registry-1.docker.io" \ No newline at end of file