chip
chip
Explore posts from servers
CDCloudflare Developers
Created by chip on 7/16/2024 in #general-help
Cloudflare SaaS custom hostname 525
Hi. I'm trying to test out Cloudflare SaaS with custom hostnames for a new feature of mine. I'll write out what I've currenlty done. 1. Created a fallback origin https://proxy-fallback.fivemanage.com/. This is an A record to a IP where the page is running on a caddy webserver. 2. Created a CNAME customers to proxy-fallback.fivemanage.com . 3. Created a custom hostname whitelist.error-interactive.com that is a CNAME record to customers.fivemanage.com. FYI: In this case both domains go through CF and all the records mentioned here are proxied. Now, if I go to the fallback domain, we see the webpage, if I go through whitelist.fivemanage.com, its just a 525 handshake error. I've tried to enable Total TLS with Google Trust Services, without that working - disabled again. Am I missing some certificates? I have not touched anything related DCV. Neither did I add any TXT records for error-interactive.com domain. Could it be related to Caddy? (I'm open to change to anything else if need be). Would be great if someone could give some pointers. (Scream at me if I'm duplicating a post, couldn't find any) 🙂
15 replies
CDCloudflare Developers
Created by chip on 3/3/2024 in #workers-help
Count how many times a r2 file has been viewed/downloaded with GET req's
Hi! I'm currently working on a a feature that allows user to enable auto-deletion of files if the image has been viewed less than x amount of times over a certain period. All I really want to do in my worker is to listen to a GET req from any file in my bucket and and simply increment a counter in my database with the image url/id. Then I'll spin up a cron job on Vercel which handles the deletion. I have currently only made a binding between my worker and my r2 bucket, and I tried a simple test with just redirecting any requests back to my homepage, but when I try to access a file in my bucket, it shows the image, instead of redirecting, and nothing is logged either. Am I thinking about this the wrong way? Are these requests only on the worker url, and in that case, should I move my entire uploading logic to the worker, instead of having it running on a separate Go server?
3 replies