HTTP to HTTPS

Hello, I need help regarding the use of Cloudflare. Essentially, I'm developing an API, but unfortunately, the server hosting it is using HTTP (and the link is the server's IP address, lol). A colleague told me that with Cloudflare, it's possible to set up a redirection link to HTTPS from my HTTP link. How can I do that? (I'm not sure if it's very clear, let me know otherwise)
5 Replies
besty
besty3mo ago
ping me
Cyb3r-Jak3
Cyb3r-Jak33mo ago
You can use redirects to rewrite HTTPS requests to HTTP but you will have to turn SSL off for that host to be reachable
merp (Taiwan arc)
you could always create a rule to make it so that particular endpoint is on Flexible TLS mode. Then outside connections to Cloudflare are still via TLS, but Cloudflare will connect to your API via HTTP
!TheGiga77
!TheGiga773mo ago
if the api is hosted on a port other than 443 or 80 then you can redirect from e.g. http://ip:3000 to https://api.example.com using cloudflare tunnel
merp (Taiwan arc)
no need for Cloudflare tunnel, just an origin rule to rewrite the destination port
Want results from more Discord servers?
Add your server
More Posts