You have to use SSL to federate.

seems i can directly reach out to other commnities with http. just dont know whether i’m in the federation now…

Dr. Jenkem
link
fedilink
4
edit-2
2Y

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.

HSL
link
fedilink
22Y

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.

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

@lovechickenfeet@programming.dev
creator
link
fedilink
1
edit-2
2Y

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?

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).

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!

Sorry I have found the docker-compose files are not quite how I remember them (and they have had many changes since I last saw them). The instructions now direct you to install the ansible copy of the docker-compose file which doesn’t have a post specified for the proxy (unless you actually run it using ansible).

Hopefully you’re able to work it out :)

thanks~ these are the instructions I followed to. The setup process is quite fast, haha. I’m just not sure why I couldn’t join the federation… Still thanks for the reply! I’ll go back and take a closer look at the documentation.

It’s possible it’s not covered. I think it probably needs to be accessible on HTTP ports (preferably 443 with HTTPS) as that’s how other servers will try to contact your server.

Probably leave your lemmy server on 8536, then set up a reverse proxy to direct 80/443 to 8536. Only port forward 80/443, other ports don’t need to be externally accessible. Some reverse proxies will set up HTTPS for you as well.

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)

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

@lovechickenfeet@programming.dev
creator
link
fedilink
1
edit-2
2Y

deleted by creator

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.

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

  • 0 users online
  • 228 users / day
  • 943 users / week
  • 2.44K users / month
  • 5.59K users / 6 months
  • 1 subscriber
  • 3.07K Posts
  • 119K Comments
  • Modlog