Ricky U
Explore posts from serversCDCloudflare Developers
•Created by Ricky U on 10/17/2024 in #workers-help
mongodb
Hey Workers team, when will you support TLS in your runtime - Question asked by a MongoDB employee.
https://alexbevi.com/blog/2024/09/11/why-cloudflare-workers-dont-work-with-mongodb/
3 replies
CDCloudflare Developers
•Created by Ricky U on 10/13/2024 in #pages-help
Do single redirect rules work on Pages Custom domains, seems they dont.
Been trying to create a redirect rule with pages custom doamins, but seems it they only work with the primary domain, i have used trace and they dont pick up the rule on custom domains. i.e. my pages domain is mycompany.com, but custom domains are docs.customerA.com with a cname to my pages domain... hence any rules for the docs.customerA.com do not work -- is this by design.
11 replies
CDCloudflare Developers
•Created by Ricky U on 10/11/2024 in #general-help
Do redirect rules in pages only work on the apex domain not on CNAME custom domain?
I have setup a custom domain for my clients "docs.clientA.com" which is setup to a cname to my pages project -- this works, but i need a redirect rule so that if the client goes to https://docs.clientA.com it wont show my pages apex domain, i only want it for authenticated nested paths such as /dash /account etc. (This is a whitelabeled saas)
so i set up a redirect rule, but it seems they dont work on custom domains?
3 replies
CDCloudflare Developers
•Created by Ricky U on 10/10/2024 in #pages-help
_redirect file or redirect rule? - Redirect a saas custom domain to apex domain
Posted this pages discussions;got no help, sorry for retrying here:/
Using a _redirect file or a redirect rule, are they the same thing essentially?, one is a GUI and another is a text file?
Ideally i want all cname that do not have a path of /dash to redirect to my apex domain.
example:
cname.yourcompany.com/dash -> shows mycompany.com/dash (this works)
but if "cname.yourcompany.com" (user isnt logged in) then redirect to the customers apex your company.com"
I have tried adding a redirect rule with a custom filter expression as so : (http.host ne "mycompany.com") then redirect to static "yourcompany.com"
expected result is that if the http host is not equal to "mycompany.com" (e.g cname.yourcompany.com) then redirect to "yourcompany.com" (unless on /dash url path)
So far this does not work and i am stumped 🤷♀️
8 replies
CDCloudflare Developers
•Created by Ricky U on 2/29/2024 in #pages-help
I added a Response Headed with the ip.src.city, but i cant read it on the client side javacript?
I belive headers are not readable in JS in the browser unless another request is made right? But I can read document.cookie, so how can i set a dynamic cookie with the ip.src.region?
set-cookie but what is the expression in the transform ? country=ip.src.region does not work.
I am using Cloudflare pages and transforms.
6 replies
CDCloudflare Developers
•Created by Ricky U on 10/27/2023 in #pages-help
Custom Domains for Pages (saas for custom domains)
Need some guidance with Pages custom domains . I would to offer my saas customers the ability to add their custom domains within the dashboard on certain routes like "/dashboard"
So i set up a under pages - > custom domains > add a domain i.e. custom.mycustomer.com which points to my pages.dev
And my customer adds a dns CNAME setting of custom to pages.dev
This all works!
But it works for all routes, we need only custom domains on /dashboard.
Do i need to do something else what are my options?
4 replies
CDCloudflare Developers
•Created by Ricky U on 10/6/2023 in #workers-help
Worker to pre-render site?
I am trying to get a worker to fetch content from a website, and send HTML in response. Effectively static site generation or pre rendering the content, would this be possible?
6 replies
CDCloudflare Developers
•Created by Ricky U on 9/16/2023 in #general-help
Trouble with subdomain.mysite.com proxy to mysite.com
I create a cname called subdomain with a target of mysite.com
i would expect that when the user viisted subdomain.mysite.com it would display the contents from mysite.com, but it shows a connection timeout cloudflare page?
any idea?
32 replies
CDCloudflare Developers
•Created by Ricky U on 9/14/2023 in #general-help
Can Cloudflare for SaaS help me?
I would like for my clients to have a custom domain that will host part of my saas offering
i.e. my site : mysite.com/d/uniqueurl -> custom.company.com/d/uniqueurl or company.com/d/unqique url
how can i handle this using the api?
2 replies
CDCloudflare Developers
•Created by Ricky U on 5/26/2023 in #general-help
For image storage which would be better r2 or images?
I would nee d the following
- images to be stored under a user object path i.e. /user1/imagename.jpg
- storing only images no other types.
- do not really need image manipulations software
- need client side uploading of images
- can be publicly available for now but only logged in users that have access to the object path should be able to see their own images.
which one would be more suitable r2 or images?
12 replies