48
submitted 1 year ago* (last edited 1 year ago) by Haui@discuss.tchncs.de to c/fediverse@lemmy.world

Hi folks!

I‘m currently setting up a „fediverse vps“ so to speak but federation is no joke so far.

I got lemmy, mastodon and matrix running pretty stable now (in docker and behind nginx proxy manager which seems to be very rare).

The next step is enabling federation and so far it’s brutal. I broke matrix by changing up the .well-known stuff and now nothing works.

I think my knowledge is just lacking at this point. Does anyone have experience with a setup like this and wants to help? I basically need the npm config and/or other changed configs for federation.

Thanks for reading. Have a good one.

Edit: Since some kind souls wanted to help and need to see configs, here they are.

Let me know if you need anything else! :)

Edit2: Here is the synapse config

top 17 comments
sorted by: hot top controversial new old
[-] walden@sub.wetshaving.social 5 points 1 year ago

I just set up Lemmy using docker and it's set up to be accessed via NPM. I didn't have to do anything special. If you care to share some screenshots I can see if anything looks unusual.

[-] Haui@discuss.tchncs.de 2 points 1 year ago
lemmy.hjson https://hastebin.com/share/giqoxejiru.yaml
docker-compose.yml https://hastebin.com/share/osavazijag.yaml
npm host file https://hastebin.com/share/ruyivojoyu.bash
lemmy ui log https://hastebin.com/share/lakurefohe.php

Let me know if you need anything else! :)

Here it is! Thanks again for offering your help.

[-] walden@sub.wetshaving.social 4 points 1 year ago* (last edited 1 year ago)

I think I've heard that Lemmy 0.18.5 requires pict-rs v4 or higher. I'm currently using asonix/pictrs:0.4.0-beta.19. Give that a try.

[-] haui_lemmy@lemmy.giftedmc.com 2 points 1 year ago

Seems to work now :)

[-] Haui@discuss.tchncs.de 1 points 1 year ago

Thanks for the suggestion. Will check it out! :)

[-] Haui@discuss.tchncs.de 1 points 1 year ago

Very cool! I‘ll post the configs as soon as I am on my computer! Thank you for offering.

[-] hai@lemmy.ml 4 points 1 year ago

I can’t help with NPM, but I had a similar problem(s) when trying to use Cloudflare Tunnels — which was an absolute pain to setup. What Matrix server are you using? Synapse or a community made one, also what’s in your .well-know and configs?

[-] Haui@discuss.tchncs.de 3 points 1 year ago

Thanks for answering. I‘m using synapse at this point but I‘m not totally set on that. I need to get back to you on the configs. They’re a huge pain to set up. I kinda get why people are using ansible playbooks. Getting the homeserver.hjson and compose file to sync up and generally getting the configs of those to sync up and then needing srv records and custom npm locations really gets to me.

[-] hai@lemmy.ml 2 points 1 year ago

I used Conduit, and it might be easier to setup, if you get those configs up for us I’d be willing to look at them still.

[-] Haui@discuss.tchncs.de 2 points 1 year ago

I definitely will post them. Just gotta get to my pc. Thanks for offering your help.

[-] Haui@discuss.tchncs.de 1 points 1 year ago

docker-compose.yml https://hastebin.com/share/izeroqiqil.yaml homeserver.yaml https://hastebin.com/share/iquzehofen.yaml npm host file https://hastebin.com/share/alolegoyey.bash synapse log https://hastebin.com/share/abumisutuz.yaml (please note that these errors are not representative of the “functioning but no federation” I had earlier since I seemingly broke something when trying to set it up differently.)

Here is the config! Thanks again for offering your help!

[-] hai@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

The first thing I see is that your server name is matrix.***.com, which means that users/MIDs will be @hai@matrix.***.com, instead of @hai@***.com, which assuming the use of .well-known you want the second. Other than that I don't really see anything that'd be an issue, but again, I haven't used Synapse. I hope that helps, keep me updated!

[-] Haui@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago)

Thanks for pointing this out. For now, I'm good with the @matrix but I will keep that in mind. Now the federation seems to be working. I completely threw out the npm config and remade it. Here's the new logs. One thing doesn't work anymore though: I'm not receiving messages from my second account and am not getting "is online" notification (green circle). Here's the current log. https://hastebin.com/share/piyumiloho.yaml (btw the .well-known was because federation tester pointed out there was none and I assumed that was the problem.)

[-] MigratingtoLemmy@lemmy.world 1 points 1 year ago

Hey OP, did you manage to fix this?

[-] Haui@discuss.tchncs.de 2 points 1 year ago

Glad you asked. Yes, mostly. Some things are still janky but most of it works. Whats your setup?

[-] MigratingtoLemmy@lemmy.world 1 points 1 year ago

I don't have a setup, but I plan to host my Kbin instance on a VPS sometime.

[-] Haui@discuss.tchncs.de 2 points 1 year ago

Ah! Nice. I can only encourage you to do so. It is in fact quite a bit of work but I‘m sure its both going to be easier every day and depending on your skillset and setup, you’ll probably have it a lot easier than me. I have like 13 docker stacks atm. only on my vps and another 10 or so on my homeserver. :)

this post was submitted on 24 Oct 2023
48 points (100.0% liked)

Fediverse

28481 readers
207 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS