Calibre-Web on RPi4 Connect Cloudflare Tunnel Problems
Hola to all,
Been a (long) while since I visited! But, in over my head (again!) and looking for some help.
Switched to the T-Mobile 5G Home Internet service, and of course they don't allow port forwarding in their router and have IPV6 addresses. So went with a Cloudflare (free) tunnel setup. My previous setup was with NOIP, but they said they could not help with this new setup.
Calibre-Web is installed and runs with "cps" to start it. cps and all the support files are in home/pi/.local/bin
I have the 'cloudflared' tunnel setup, and it runs but I get the "bad gateway error code 502" when I connect with my new website name. I am sure that is because I have not connected the 'cps' startup to the apache2 web server with the new name.
So how to I get "mywebsite.net" to connect with "cps"?
Thanks!
Monty
Edit: I should have added these details. I start the tunnel on the RPi with:
cloudflared tunnel run --url 192.168.12.165:8083 mywebsite
The tunnel starts up and runs with no errors. But when I try to connect with a browser on the internet I get this error from the tunnel process on the RPi:
2024-03-19T20:40:53Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 192.168.12.165:8083: connect: connection refused" cfRay=867047b5d89808a8-LAX originService=http://192.168.12.165:8083
2024-03-19T20:40:53Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 192.168.12.165:8083: connect: connection refused" connIndex=1 dest=http://mywebsite.net/ ip=198.41.192.77 type=http
The 192.168.12.165 is the local IP assigned by the TMO router. 8083 is the port I have always used (Pagekite and NOIP), so prefer to keep it if possible.
I have no clue what the 198.41.192.77 is all about.
Last edited by MontyJ; 03-19-2024 at 04:46 PM.
Reason: Details
|