this post was submitted on 09 Jun 2023
10 points (100.0% liked)

Lemmy Support

4656 readers
16 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

G'day, I just got Lemmy going on my site https://apollo.town and it doesn't appear to be federating. I ran through the Lemmy troubleshooting docs and I can return valid JSON from the site, but I can't look up anything on lemmy.ml from my site - although I can look up my site from lemmy.ml.

Caddy is my reverse proxy with the world's simplest config:

root@apollotown:~/lemmy# cat Caddyfile 
# apollo.town Lemmy instance
apollo.town {
	reverse_proxy :4040
}
you are viewing a single comment's thread
view the rest of the comments
[–] pe1uca@lemmy.pe1uca.dev 1 points 1 year ago* (last edited 1 year ago) (1 children)

So you want to have this:

networks:
  # only ports facing any connection from outside
  lemmyexternalproxy:
  lemmybridge:
  # communication between lemmy services
  lemmyinternal:
    driver: bridge
    internal: true

And in the container this.

lemmy:
    image: dessalines/lemmy:0.17.3
    hostname: lemmy
    networks:
      - lemmyinternal
      - lemmybridge
    restart: always

(leave the rest as is, you can name the new network however you want)

[–] tekeous@beehaw.org 2 points 1 year ago (1 children)

You're a bloody genius, thank you, that appears to have solved the problem.

[–] pe1uca@lemmy.pe1uca.dev 1 points 1 year ago

Nice! This confirms it, I'll check tomorrow to share this in the repo to update the documentation.