How do I setup a reverse proxy on Cloudflare?
Basically, I'm trying to convert http://149.56.67.129:25585 into https://svexpanded.com/
How would I do this?
36 Replies
depending on the type of website you could use an nginx reverse proxy:
Or workers:
Is this possible going through just Cloudflare? I do not have the resources currently to setup a VPS and nginx reverse proxy
you could use cf workers
I'll test out this:
hm
Could you expand on that a bit more? Not quite sure what you mean hahaha
Do you have access to the domain name you bought
Add that domain name to CloudFlare
https://dash.cloudflare.com/?to=/:account/add-site
Already added, yes
Do you have the DNS records set up for proxying?
Type: A
Name: @
Target: 149.56.67.129
Yes, that has been added
So now you need to overwrite the port from 80 (HTTP)/443 (HTTPS) to your specified port (25585)
Under rules > origin rules > new
Should be "all Incoming requests" then "overwrite to 25585"
@RyanKnack
Just did it. Doesn't appear to be working quite yet- could it take some time?
ohhh i see
i needed to proxy the A record
I think you may need to configure the DNS on your server side as well
Can I see your DNS entries
I had it on DNS only, Proxied works :D
Ooh so it works now?
Ayyy works on my end as well
Just to make sure, you're getting
Main Page Here
or something like thatYuh
perfecttt
my cache must be screwed up 😂
works on my phone though 🙏
Not sure how to bypass browser cache but on windows it is Ctrl + F5
Safari is dumb, even when I empty caches it still persists lol
It's a HTML page for now right?
Yep!
CF doesn't cache HTML by default so it should just be your browser cache
But if it works on your other device and on my end I do see the page you wanted
So it works
Oh try incognito
works!
Just gotta properly make the webpage now and not all in flask... hope to get a frontend in tsx/react and backend in python
:D
Aight have fun!
Thank you so much for your help! ❤️
No probs!
Should I just close this channel or how does it work here?
Usually there's a bot that has a command, but not sure hahaha
I think you can just leave it here. The answers are all indexed to the web. Mark it as solved would be helpful
Got it. Thank you again!
I've been paying $7/month for the past year or so for a nginx reverse proxy vps, this is going to save way too much money 😂
CF free :lul:
Best free service I've ever used :happy:
guys, does anyone tried setting up custom domain on google cloud using proxied A or CNAME Record in Cloudflare? Would that work? Or it needs to be dns-only