Federation of my Lemmy instances doesnt work (please help)
I hope this is the right place for this.
So, here is the thing: my lemmy instance is accessible in the browser via its domain, everything is fine, but no other communities are shown. When I test federation with "curl -H "Accept: application/activity+json" https://my-instance.com/u/some-local-user" I get a SSL certificate error.
So I figured that it has something to do with my reverse proxy and modified the nginx.conf like described in the documentation.
But the error persists.
This is my nginx.config in /etc/nginx/sites-enables/<my-domain>:
Where did you get your certificates from and what's the exact error message? Maybe you're using self-signed certificates. Those don't get accepted by anyone else. Your path doesn't look like the default letsencrypt/acme path...
Nah don't use those. Get your own direct from Let's Encrypt. Less hoops to go through when its time to renew. Acme with a crontab entry takes care of renewals automatically. Don't forget to add to the crontab line to restart nginx right after the renewal so that the new certs are used.
That would explain it. I mean if your provider provides you with a proper certificate, you can also use that. But often times it's just a temporary self-signed placeholder that's only good for development and not valid.
Yes, also occures without the header. But I think I know the problem now: I tried to use the certificate of my host provider, which seems not to work for federation
You can try using openssl s_client -connect domain:443 to help debug what the issue is. Without your domain it's hard to guess what specifically is causing a TLS issue.
Where did you get your certs? Do they match exactly the domain you're using? Are they expired or self signed? Are your details in the double curly brackets all correct?
You can try to use ssllabs, check cipher compatibility with browsers and such... though I think that requires things are working to a certain level first.