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
No description
No description
No description
No description
5 Replies
Wake
WakeOP3mo ago
Still cant get it working
Chaika
Chaika3mo ago
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 failed
Wake
WakeOP3mo ago
Thank 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
No description
Chaika
Chaika3mo ago
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
Wake
WakeOP3mo ago
Ok
Want results from more Discord servers?
Add your server