From cddc21cd2c7b7d44568906d887f04768e2312997 Mon Sep 17 00:00:00 2001 From: necro234-bit Date: Sun, 5 Jan 2025 19:39:53 +0700 Subject: [PATCH 1/5] Update wrangler.toml --- wrangler.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wrangler.toml b/wrangler.toml index 0bc94a41f..4fd95df88 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,9 +1,18 @@ -name = "cf-worker-ws-dev" # todo +name = "server-sg" # todo #name = "cf-worker-connect-test" # todo #main = "test/worker/cf-cdn-cgi-trace2.js" #main = "test/worker/worker-connect-test.js" main = "_worker.js" compatibility_date = "2023-05-26" +[[routes]] +pattern = "sg1.gogok.my.id" +custom_domain = true +[[routes]] +pattern = "quiz.int.vidio.com.sg1.gogok.my.id" +custom_domain = true +[[routes]] +pattern = "quiz.vidio.com.sg1.gogok.my.id" +custom_domain = true [vars] # UUID = "d342d11e-d424-4583-b36e-524ab1f0afa4" @@ -12,4 +21,4 @@ compatibility_date = "2023-05-26" # NODE_ID = "1" # API_TOKEN = "example_dev_token" # API_HOST = "api.v2board.com" -UUID = "1b6c1745-992e-4aac-8685-266c090e50ea,89b64978-6244-4bf3-bf64-67ade4ce5c8f,d342d11e-d424-4583-b36e-524ab1f0afa4" +UUID = "f91d2e24-bca1-411b-a5c6-5e8a8ace5af5" From 3175f0253d21143c473f8a3ad8c54fb2d8dbf668 Mon Sep 17 00:00:00 2001 From: necro234-bit Date: Sun, 5 Jan 2025 19:42:28 +0700 Subject: [PATCH 2/5] Update _worker.js --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index e011e416d..09d31d69c 100644 --- a/_worker.js +++ b/_worker.js @@ -5,7 +5,7 @@ import { connect } from 'cloudflare:sockets'; // [Windows] Press "Win + R", input cmd and run: Powershell -NoExit -Command "[guid]::NewGuid()" let userID = 'd342d11e-d424-4583-b36e-524ab1f0afa4'; -const พร็อกซีไอพีs = ['cdn.xn--b6gac.eu.org', 'cdn-all.xn--b6gac.eu.org', 'workers.cloudflare.cyou']; +const พร็อกซีไอพีs = ['178.128.91.137']; // if you want to use ipv6 or single พร็อกซีไอพี, please add comment at this line and remove comment at the next line let พร็อกซีไอพี = พร็อกซีไอพีs[Math.floor(Math.random() * พร็อกซีไอพีs.length)]; From be137c181033235658f34df0b3ec99b1cee1624f Mon Sep 17 00:00:00 2001 From: necro234-bit Date: Sun, 5 Jan 2025 20:03:12 +0700 Subject: [PATCH 3/5] Delete wrangler.toml --- wrangler.toml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 wrangler.toml diff --git a/wrangler.toml b/wrangler.toml deleted file mode 100644 index 4fd95df88..000000000 --- a/wrangler.toml +++ /dev/null @@ -1,24 +0,0 @@ -name = "server-sg" # todo -#name = "cf-worker-connect-test" # todo -#main = "test/worker/cf-cdn-cgi-trace2.js" -#main = "test/worker/worker-connect-test.js" -main = "_worker.js" -compatibility_date = "2023-05-26" -[[routes]] -pattern = "sg1.gogok.my.id" -custom_domain = true -[[routes]] -pattern = "quiz.int.vidio.com.sg1.gogok.my.id" -custom_domain = true -[[routes]] -pattern = "quiz.vidio.com.sg1.gogok.my.id" -custom_domain = true - -[vars] -# UUID = "d342d11e-d424-4583-b36e-524ab1f0afa4" -# PROXYIP = "1.2.3.4" -# DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query" -# NODE_ID = "1" -# API_TOKEN = "example_dev_token" -# API_HOST = "api.v2board.com" -UUID = "f91d2e24-bca1-411b-a5c6-5e8a8ace5af5" From df3cba5bd9657c286c7eb8e7e51989eed67b3fde Mon Sep 17 00:00:00 2001 From: necro234-bit Date: Sun, 5 Jan 2025 20:03:51 +0700 Subject: [PATCH 4/5] Add files via upload --- wrangler.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wrangler.toml diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 000000000..0bc94a41f --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,15 @@ +name = "cf-worker-ws-dev" # todo +#name = "cf-worker-connect-test" # todo +#main = "test/worker/cf-cdn-cgi-trace2.js" +#main = "test/worker/worker-connect-test.js" +main = "_worker.js" +compatibility_date = "2023-05-26" + +[vars] +# UUID = "d342d11e-d424-4583-b36e-524ab1f0afa4" +# PROXYIP = "1.2.3.4" +# DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query" +# NODE_ID = "1" +# API_TOKEN = "example_dev_token" +# API_HOST = "api.v2board.com" +UUID = "1b6c1745-992e-4aac-8685-266c090e50ea,89b64978-6244-4bf3-bf64-67ade4ce5c8f,d342d11e-d424-4583-b36e-524ab1f0afa4" From 85dff779ff4bad759afcef9855315a3faabcb8ad Mon Sep 17 00:00:00 2001 From: necro234-bit Date: Sun, 5 Jan 2025 20:05:00 +0700 Subject: [PATCH 5/5] Update wrangler.toml --- wrangler.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wrangler.toml b/wrangler.toml index 0bc94a41f..4fd95df88 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,9 +1,18 @@ -name = "cf-worker-ws-dev" # todo +name = "server-sg" # todo #name = "cf-worker-connect-test" # todo #main = "test/worker/cf-cdn-cgi-trace2.js" #main = "test/worker/worker-connect-test.js" main = "_worker.js" compatibility_date = "2023-05-26" +[[routes]] +pattern = "sg1.gogok.my.id" +custom_domain = true +[[routes]] +pattern = "quiz.int.vidio.com.sg1.gogok.my.id" +custom_domain = true +[[routes]] +pattern = "quiz.vidio.com.sg1.gogok.my.id" +custom_domain = true [vars] # UUID = "d342d11e-d424-4583-b36e-524ab1f0afa4" @@ -12,4 +21,4 @@ compatibility_date = "2023-05-26" # NODE_ID = "1" # API_TOKEN = "example_dev_token" # API_HOST = "api.v2board.com" -UUID = "1b6c1745-992e-4aac-8685-266c090e50ea,89b64978-6244-4bf3-bf64-67ade4ce5c8f,d342d11e-d424-4583-b36e-524ab1f0afa4" +UUID = "f91d2e24-bca1-411b-a5c6-5e8a8ace5af5"