connect fomain to flask webserver
Hey, i have a python webserver (more specifically a api hosted wirh flask) is there any way to connect my domain to it (it use port 3044)?
8 Replies
Cloudflare Docs
Network ports | Cloudflare Fundamentals docs
Learn which network ports Cloudflare proxies by default and how to enable Cloudflare’s proxy for additional ports.
cloudflare doesn't support port 3044
You will need to do something like listen on a cloudflare-supported port, and forward packets to the API
Not even with dns only?
You can with DNS only. You just need to add the IP address of the origin running the service. You’ll need to add the port to the URL as it is non standard
Cant i add like a srv record?
That only works if the service checks for SRV records which browsers don’t support
The best way is using an origin rule to rewrite the destination port; https://developers.cloudflare.com/rules/origin-rules/features/#destination-port
Cloudflare Docs
Available settings | Cloudflare Rules docs
The following sections describe the available settings in Origin Rules.
Hmm, tysm