Daniel
Daniel
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Daniel on 2/19/2024 in #questions
How to call tRPC on the client?
Got it, thanks. I was just confused on where to import it.
5 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
I don't use workers enough to justify paying for it, so I think I'll just remove it for now. This is probably resolved now, thanks again for your help
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Alright
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Unfortunate
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
That's quite tedious
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
I have like 8 routes though
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Can I disable it without deleting it? I don't see a button anywhere
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
The worker:
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
if (url.pathname === "/status") {
let currentState = await env.MAINTENANCE_KV.get("maintenance");
return new Response(`Maintenance mode ${currentState}`, { status: 200 });
}

let maintenanceMode = await env.MAINTENANCE_KV.get("maintenance");

if (maintenanceMode === "on" || url.toString().includes("maintenance.example.com")) {
const html = <"html of the page as a string">;
return new Response(html, { status: 503, headers: {
"content-type": "text/html;charset=UTF-8",
}, });
}
return fetch(request);
},
}
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
if (url.pathname === "/status") {
let currentState = await env.MAINTENANCE_KV.get("maintenance");
return new Response(`Maintenance mode ${currentState}`, { status: 200 });
}

let maintenanceMode = await env.MAINTENANCE_KV.get("maintenance");

if (maintenanceMode === "on" || url.toString().includes("maintenance.example.com")) {
const html = <"html of the page as a string">;
return new Response(html, { status: 503, headers: {
"content-type": "text/html;charset=UTF-8",
}, });
}
return fetch(request);
},
}
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
But I think everything is always going through it, which could explain the ratelimit
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
It's only supposed to show a separate page when a KVP is set to true
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Actually I think so
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
One extra thing to note: The one thing I did change recently was adding a configurable "offline" page to show when a KVP is true, which is to be used when my server is under scheduled maintenance. I am using workers routes for these. I'm not too familiar with this, so perhaps that could have been the cause?
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
I'll have to wait until tonight when I'm back at the computer with the issue (the big nextcloud sync). I'll let you know if it fails or succeeds, thank you for your help
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Should I disable it?
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
It's enabled
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
My bad
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
No description
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
No description
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
Yeah doing that rn
62 replies
CDCloudflare Developers
Created by Daniel on 1/8/2024 in #general-help
How do I disable ratelimits for a domain on a Cloudflare Tunnel?
It's my actual IPv6 address (just looked it up)
62 replies