Pterodactyl
I had the whole site working and up but when i connect to Cloudflare tunnels I can not get the website up. I am getting error code 502. I also included a little snip of the nginx conf file, and one of the ports allowed on the servers firewall
5 Replies
Still cant get it working
502 means tunnel on host (cloudflared) can't connect to your origin. That second public hostname connecting to localhost on port 80 over https (!!) doesn't make much sense, would delete both and recreate clean. You don't need to setup https as long as the tunnel is on the same host as pterodactyl, if https is causing you issues with certs and such you could just go with http and remove the redirect and such. You don't need to open your firewall or anything when using Cloudflare Tunnels as long as the tunnel is on same host.
If using linux/systemd you can do
sudo journalctl -u cloudflared -f --lines=100
to see the cloudflared logs and any errors on it connecting, send a request while watching and you can see why it failedThank you, but it only works when i put the servers ip address in and then they both are up, idk if thats bad or good
Can you clarify what you mean by "the server's ip address in"? As compared to what? Both hostnames seem reachable to me
oh as compared to localhost? Well localhost is only same machine, and can be some special situations like docker where that would change it, as long as it's local and that ip is static doesn't really matter
Ok