So I setup my own lemmy homeserver and hope to be able to federate with lemmy.ml as well (see top post :) ) … but I am hosting in a FreeBSD jail with Caddy doing my reverse proxy instead of nginx.
The curl command above does not work on my instance either:
The problem however, is that Caddy is passing any requests with the JSON activity stream header to the proper port in the jail (8536) and the response is empty.
The same happens if I run curl against the jail IP from within the network, so either the response is supposed to be empty, or there’s something wrong with the lemmy_server binaries’ actual response to that header.
Any help would be appreciated! Love the idea of Lemmy + federation :grinning face with smiling eyes:
Sweet! If you add a code of conduct, and let me know the tagline for your instance, I’ll get you added to our allowlist.
Greetings,
I linked the CoC in the sidebar.
The instance is a general one, no specific topic, the main language is French.
Okay, got you added, but you need to make a correction to your nginx, which is incorrectly set.
These shouldn’t be port
1235
, it should be port8536
:https://github.com/LemmyNet/lemmy/blob/main/ansible/templates/nginx.conf#L61
This command should give you json, not html:
curl -H "Accept: application/activity+json" https://lemmy.tedomum.net/c/tedomum
So I setup my own lemmy homeserver and hope to be able to federate with lemmy.ml as well (see top post :) ) … but I am hosting in a FreeBSD jail with Caddy doing my reverse proxy instead of nginx.
The curl command above does not work on my instance either:
curl -H "Accept: application/activity+json" https://lemmy.unbl.ink/u/secstate
The problem however, is that Caddy is passing any requests with the JSON activity stream header to the proper port in the jail (8536) and the response is empty.
The same happens if I run curl against the jail IP from within the network, so either the response is supposed to be empty, or there’s something wrong with the lemmy_server binaries’ actual response to that header.
Any help would be appreciated! Love the idea of Lemmy + federation :grinning face with smiling eyes:
I don’t know anything about caddy, so I couldn’t help debug it. Here’s our nginx config, you’ll have to do the work of converting it.