Hey friends!

I’ve recently set up my own Lemmy instance at http://chinese.lol:8536 and it’s been working well so far. According to what I know, I should be able to subscribe to other federated communities, but it seems like I’m having some trouble.

In the settings, I’ve enabled “Federation” and added “lemmy.world” and “programming.dev” to the list of allowed instances. However, when I search for communities, I still can’t seem to find any from these instances.

Has anyone else encountered this issue? Am I missing a step or a setting somewhere? I’d really appreciate any guidance or advice you can offer.

Thank you in advance for your help! 🙏

I also posted it in Reddit and hope I can fix it.

https://www.reddit.com/r/Lemmy/comments/15tft63/need_help_with_lemmy_instance_federation/

3 points

This is a support question related to using (and hosting) Lemmy. Please see the sidebar for suggestions on communities where you can find support in the sidebar. Removing per rule #3.

permalink
report
reply
2 points
*

Pretty sure https is a requirement for federation. Not sure about non-standard port number, but I would try and move to 443. I know you mention in a comment port 443 is already in use, in which case, I recommend setting up a reverse proxy (I like nginx-proxy-manager), and configure a subdomain for the lemmy instance.

permalink
report
reply
1 point

I’m not certain that federation works if you aren’t running over the standard HTTP ports. Any reason you are using port 8536?

permalink
report
reply
2 points
*

thanks for reply! The default port of lemmy instance is 8536, so I just leave it there. also my 80/443 port have been taken by another app. may i ask where can i get the federation information for this? ( also may I ask can I use other ports for making HTTPS?

permalink
report
parent
reply
2 points

Lemmy has many different containers all running in docker. It includes a reverse proxy that listens on port 80 and redirects traffic to the appropriate container.

And yes, you can direct traffic to the right place based on the URL being accessed. This is called a reverse proxy. It’s easiest to allow Lemmy’s reverse proxy to stay as is except change the docker external port to something else (e.g. 8080), then have another reverse proxy to handle traffic to your different services.

Some common reverse proxies are Caddy, Traefik, NPM, or just using nginx though that may be more difficult to configure if you aren’t familiar. Search up a tutorial, which is best depends on what else you have running (e.g. traefik automatically detects how to connect to each docker container, but gets a lot trickier if all your services aren’t in docker).

permalink
report
parent
reply
2 points

got it got it. I saw this federation test from the offical git, https://github.com/LemmyNet/lemmy/tree/main/docker/federation. but seems it’s a local federation validation… I’ll do more search for that and may set up with my own nginx, thanks for the reply!

permalink
report
parent
reply

Learn about reverse proxies such as Nginx or Caddy. The various selfhosted communities on Lemmy should be able to help with your questions. That’ll fix the port conflict problem. (Though I recommend wiping your Lemmy DB and starting from scratch when changing domains. Federation is really finicky in situations like that)

My second recommendation would be to use blocklists to deny the crap parts as opposed to allowlisting as that will impact your view of the threadiverse. (Which by itself isn’t a bad thing, but is the wrong tool for the job in most cases I’ve seen people asking about it)

permalink
report
parent
reply
1 point

thx Kopper! thanks for the advice, it may resolve the issue for ports confliction. but I’m still wondering why my http one with port 8536 cannot get into the federation

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
1 point

thanks eveyone for the help! I think I’m able to access other commnities now! the search engine was a little bit slow! although i’m using http. but I’m not sure whether others can subscribe my community.

permalink
report
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 35

    Monthly active users

  • 2.3K

    Posts

  • 29K

    Comments