this post was submitted on 28 Jun 2023
8 points (90.0% liked)

Selfhosted

40382 readers
484 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
 

Hey all, I almost have it setup and working.

Was able to login via element to my instance.

DNS/SRV setup It passed the federation test.

But I'm getting 401 unauthorized when I try and search for public rooms.

I kinda know where the issue is.

my set up is a little fucky due to my ISP blocking port 80. So I have an aws ec2 instance setup with a tunnel to my home-sever as well as a ngnix proxy manager setup to point to said home-server. Then I have the home-sever running matrix/synapse behind ngnix proxy manager.

Example.com/.well-known/matrix/server comes up with 404

Example.com/_matrix/static/ works

So I just have to narrow it down a little bit.

The main reason I wanted to setup matrix was I was super interested in the android sms bridge, but after looking through the setup process it seems like a lot too. Not sure if anyone has seen any easier guide than the main doc.

I have 80 and 443 forwarded on AWS, I believe I'd have to forward 8448 as well...? Still looking into that bit.

Also, any better communities I could reach out to?

Cheers.

top 2 comments
sorted by: hot top controversial new old
[–] ItsGhost 1 points 1 year ago

I get where your coming from, and you’re right that it’s a complex setup. It comes with certain privacy trade-offs, but for this use case I’d seriously consider something like CloudFlare tunnels rather than trying to roll your own.

My suspicion is nginx on the AWS instance hijacking /.well-known/* for its own uses. That said if the homeserver is for the same domain as it’s publically reachable from, the .well-known should be unnecessary, but it might be to change the port, it’s been a while since I’ve looked.

You shouldn’t ultimately need to port forward anything extra beyond 443, heck I’m pretty sure my homeserver isn’t reachable on anything besides 443 even internally with how I’m running my proxies.

Might be worth giving [email protected] a cross post, and if you want to check federation with an actual human I’m @ghost:itsg.host on matrix 👻

[–] [email protected] 1 points 1 year ago

Try without the second Nginx which is not really needed if your tunnel is properly encrypted. And yes the S2S port needs to be open.

Personally I would not use the Nginx Proxy Manager. It is too limited for more complex web apps like Synapse.