9
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

I currently have my instance running on my local network. I now have to expose it to the internet and want to use cloudflared for this. Unfortunately it doesn't seem to work.

I am using the default nginx config. Here is my docker-compose.yml https://pastebin.com/6awxsZn8

EDIT: adding network_mode: 'host' to cloudflared fixed it.

top 3 comments
sorted by: hot top controversial new old
[-] [email protected] 3 points 2 months ago

I might be wrong, but I believe that lemmy-ui default port is 1234, not 1236.

Can you get the the backend to work? If you make a request to <your domain>/api/v3/site, do you get a response?

[-] [email protected] 1 points 2 months ago

It say's "Bad gateway" and I get this in my console.

cloudflare_lemmy  | 2024-05-15T12:20:02Z 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 0.0.0.0:1234: connect: connection refused" connIndex=1 dest=https://lemmy.burningturtle.win/ event=0 ip=198.41.192.47 type=http
[-] [email protected] 1 points 2 months ago

It looks like your cloudflared is trying to reach the Lemmy UI directly? What is the URL your tunnel is configured to reach?

this post was submitted on 15 May 2024
9 points (100.0% liked)

Lemmy Support

4550 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS