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

Lemmy Support

4634 readers
12 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm hopefully finishing up my first Lemmy installation through Ansible and have now enabled federation but think there are issues.

What's working:

  • See instances showing up in the instances list
  • Searching across federated sites works

What's not working:

  • When trying to subscribe to communities on other sites, I see "subscribe pending" - I found this Github issue which points to troubleshooting with CURL commands - they should return valid JSON and instead return nothing.
  • Posted to other communities doesn't seem to go through - I'm guessing the same problem.

As far as I can tell, this is probably an nginx configuration problem. Is that the case, and what's the best way to tackle that given the Ansible setup?

Thank you!

you are viewing a single comment's thread
view the rest of the comments
[–] worldcitizen101@sopuli.xyz 1 points 1 year ago* (last edited 1 year ago)

After some digging, I found the nginx config in the lemmy-ansible file structure: templates > nginx.config

However, this is highly abstracted because it's part of the Ansible install. I'm pretty sure I shouldn't edit it.


One possible clue - so far, I've been enabling federation from the UI. There's a bit in the configuration documentation that says that the lemmy.jhson needs to be updated with a federation block: https://join-lemmy.org/docs/en/administration/configuration.html

I don't have this file in the lemmy-ansible directory.


I also tried troubleshooting the federation setup again after reinstalling the instance from scratch.

All four CURL commands now return proper JSON:

Would this be a better question for the Ansible Github?