Edit: Solved! See solution in comments
I’ve setup a self hosted lemmy docker and it works when accessing directly on the same subnet.
I don’t have ports opened in my firewall and my ISP don’t offer static IP so I rely on Clouflare tunnel as an alternative.
I’m able to load the front page, but can’t sign in. I don’t cache JavaScript through Cliudflare so I believe it’s relating to Websockets, but curious if anyone else has been able to get this working?
It’s similar but with dyndns clients are connected directly to your own IP address (which may occasionally change). Cloudflare Tunnel is what the name implies, a tunnel: you run a process (
cloudflared
) on your machine that connects to Cloudflare, and clients will connect to Cloudflare as well. Cloudflare does its thing with the connection, then sends it tocloudflared
which forwards it to your actual server process.Benefits compared to dyndns:
Downsides:
Cloudflare provides two options: quick tunnels and permanent ones.
Quick tunnels are temporary but quick to set up: you just run
cloudflared tunnel --url http://localhost
, it tells you your URL is something likehttps://some-words-strung-together.trycloudflare.com
, and when you stopcloudflared
(or it loses the connection) that URL is gone and you can’t get it back.Permanent tunnels require more configuration, and you need to already own or control a (sub)domain for Cloudflare to manage. Internally it uses a “crazy hash looking string” domain, but that’s just for configuration and not really user-visible. The main differences compared to quick tunnels:
yourdomain.com
orsub.yourdomain.net
or whatever).Thanks it sounds interesting