this post was submitted on 02 Aug 2024
789 points (96.7% liked)

Selfhosted

40382 readers
463 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] jlh@lemmy.jlh.name 8 points 3 months ago (1 children)

Being able to find and read software documentation and knowing how to use the tools that automate software deployment are why SRE/devops/cloud guys get paid the big bucks.

I definitely recommend synapse over dendrite or conduit btw. dendrite and conduit have a bunch of missing features, and my first attempt at dendrite server shat the bed with its NATS store and died. I definitely recommend Synapse for all matrix servers going forward.

The .well-known entries I found were the hardest to test, since synapse doesn't provide a web server for them, and Element throws a fit if you don't have CORS set up exactly in the way it wants you to.

I mostly have my matrix server working now, with bridges even. However, Element randomly logs itself out on a daily basis which is really frustrating :/

load more comments (1 replies)
[–] jqubed@lemmy.world 7 points 3 months ago

I haven’t done any programming in over 20 years, but I think I can make a contribution to projects by trying to improve documentation, once I start using some projects

[–] h4lf8yte@lemmy.ml 6 points 3 months ago (2 children)

But this is some Docker shit. For myself Docker always feels a little corporate. It's just not very conventional with these multiline commands just to run a command inside a container. Especially the obligatory "-it" to fucking see anything. It's not really straight forward. But if you get used to it and you can make a lot of aliases to use it more easily.

load more comments (2 replies)
[–] nexussapphire@lemm.ee 6 points 3 months ago

The dankest depths of archlinux wiki. Written by a guy so far gone, so war harden by reading through source code and poorly written technical documentation, ancient forums, leaving no stone unturned. A task so twisted it drives most men crazy.

1% of arch users will ever need this wiki and few have gone through this Herculean task. For them, the first draft is enough, it's all you can ask of a mind so twisted and broken. Alas it's as unreadable as the source code and as hard to understand as the forum post from 2009.

[–] Presi300@lemmy.world 6 points 3 months ago (1 children)

I mean... Bad documentation isn't specific to selfhosting.

load more comments (1 replies)
[–] Batbro@sh.itjust.works 5 points 3 months ago* (last edited 3 months ago) (2 children)

Legit, I run Synapse, the registration shared secret is just a random string you supply and add it to the home server ymal

Then you use that string to create users by API.

Idonno, felt straight forward to me

[–] el_abuelo@programming.dev 8 points 3 months ago (3 children)
[–] lud@lemm.ee 5 points 3 months ago

A dude who's very picky about whitespace.

[–] AVincentInSpace@pawb.social 4 points 3 months ago

Ymal Markup Ain't Language

load more comments (1 replies)
[–] Swedneck@discuss.tchncs.de 5 points 3 months ago

the documentation is just missing clearly stating that fact, though from what i recall i think that might be said in the config file?

[–] todd_bonzalez@lemm.ee 4 points 3 months ago

I recently set up Synapse just to play around with the protocol, and I do not remember this instruction at all. Where did you get this?

[–] sj_zero@lotide.fbxl.net 4 points 3 months ago

Not sayin nothin, but you might want to look at Matrix Conduit. you won't want to keep it open, but it's much easier to set up and it uses a tiny amount of the resources. Synapse kills the server I'm running both conduit and lotide on just fine.

[–] anamethatisnt@lemmy.world 3 points 3 months ago

Alternatively, you can create new users from the command line.
This can be done as follows:

If synapse was installed via pip, activate the virtualenv as follows (if Synapse was installed via a prebuilt package, register_new_matrix_user should already be on the search path):

cd ~/synapse
source env/bin/activate
synctl start # if not already running
Run the following command:
register_new_matrix_user -c homeserver.yaml
This will prompt you to add details for the new user, and will then connect to the running Synapse to create the new user. For example:

New user localpart: erikj
Password:
Confirm password:
Make admin [no]:
Success!

This process uses a setting registration_shared_secret, which is shared between Synapse itself and the register_new_matrix_user script.
It doesn't matter what it is (a random value is generated by --generate-config), but it should be kept secret, as anyone with knowledge of it can register users, including admin accounts, on your server even if enable_registration is false.

https://element-hq.github.io/synapse/latest/setup/installation.html

load more comments
view more: β€Ή prev next β€Ί