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
}
  • pe1uca
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    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.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

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

      • pe1uca
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

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