Hope you guys enjoy this, I setup matrix.osia.me to keep up and running for a bit. Feel free to register and send me a message. If a bunch of folks register, I may leave it up long term.
@DigitEgal
3 жыл бұрын
Awesome.. its that self-explaining you dont even have to search buttons :D Thanks for setting this up
@RanEncounter
3 жыл бұрын
the first script had an typo "slep" instead of "sleep". Did not affect the outcome but still.
@AwesomeOpenSource
3 жыл бұрын
@@RanEncounter If that was the only typo I made, it would be a miracle. I do a ton of editing, and sometimes get the wrong segment in. I mess up a lot before I get it right.
@RanEncounter
3 жыл бұрын
@@AwesomeOpenSource No worries as long as the scrip works.
@ForrestRhoads
3 жыл бұрын
These are fantastic videos. I just found your channel, and an super impressed. Thank you so much! What valuable content and great instruction!
@AwesomeOpenSource
3 жыл бұрын
I appreciate it, and glad you're enjoying it.
@zl9o1
3 жыл бұрын
Thank for this video, Setting up federation would be nice :)
@AwesomeOpenSource
3 жыл бұрын
Noted!
@pratikbin
3 жыл бұрын
Damn man... It's a fricking helpful
@AwesomeOpenSource
3 жыл бұрын
Glad to hear it!
@shwackthenoobsac
Жыл бұрын
This an amazing resource. Thank you!
@AwesomeOpenSource
Жыл бұрын
You're very welcome!
@alexander.995
3 жыл бұрын
When I try to start synapse through docker im getting a bunch of python 3.8 errors
@jacobwarners887
3 жыл бұрын
I'm seeing Permissions issues here even though running as root... Let me know if you figured it out
@ThePatternJugglers
3 жыл бұрын
Yeah, I am getting the same errors... The docker just crashes immediately.
@ThePatternJugglers
3 жыл бұрын
I found a solution that worked for me here: www.reddit.com/r/selfhosted/comments/nhi8u0/cant_get_matrix_synapse_docker_install_working/
@AwesomeOpenSource
3 жыл бұрын
Thanks so much for sharing the solution back.
@uTubeJRod
3 жыл бұрын
Excellent walkthrough - THANK YOU...I'm still going through it. I wanted to point out a minor issue, you changed the homeserver.yaml config parameter to read "enable_search:true" but its already enabled by default if you read the description of that parameter.
@AwesomeOpenSource
3 жыл бұрын
Yep, I did that on a few of them, I'm more of a "If I see it, it's set" kind of person and when it's commented out, it doesn't stand out for me.
@heathblandford6493
3 жыл бұрын
Hey! This is fantastic!! Thank you for this!
@AwesomeOpenSource
3 жыл бұрын
You bet.
@godwears7
Жыл бұрын
Excellent work dude!
@AwesomeOpenSource
Жыл бұрын
Thanks, glad you like it.
@gabrielferrer2400
Жыл бұрын
I didn't have it working when I put docker ip on Details > Forward Hostname / IP and getting 502 Bad Gateway. Instead when I added the public ip of the machine, matrix page appeared
@AwesomeOpenSource
Жыл бұрын
Hmmmm. Interesting. Things could have definitely changed since I made this video.
@franzpleurmann2585
Жыл бұрын
The homeserver.yaml file which is created by the first docker command is much shorter than in the video. This is confusing. I guess the tutorial is outdated?
@AwesomeOpenSource
Жыл бұрын
This video is getting a bit old. So the methods may have changed. I have Matrix on my list for an update video.
@Jauhso
3 жыл бұрын
Thank you for this, will definitely watch this later. I have been looking for a walk through to do this. Would you take a look at a Whatsapp or Slack Bridge for Matrix?
@AwesomeOpenSource
3 жыл бұрын
I can, certainly.
@misterlincoln
Жыл бұрын
Hello. When I turn on Wireguard, I can't call in the Element, it says "Connection is being established". But if you turn off the VPN it works fine. Why do you think this could be?
@AwesomeOpenSource
Жыл бұрын
Does your VPN take over your entire connection, and does it have DNS that knows where your synapse server is?
@misterlincoln
Жыл бұрын
@@AwesomeOpenSource Yes, vpn take entire all connections. Whatsapp, Telegram, Signal all work without problems. DNS configured via Cloudflare
@alexander.995
3 жыл бұрын
would love to see a video on setting up federation
@AwesomeOpenSource
3 жыл бұрын
It's on my list of todo's.
@saberking1332
3 жыл бұрын
@@AwesomeOpenSource Would definitely be appreciated. Something myself and a friend have been attempting to get working with no success.
@TheRealObamagaming
2 жыл бұрын
35:08 does it make a difference if I use the eth0 ip adress instead of the docker0 adress?
@AwesomeOpenSource
2 жыл бұрын
You'll need to use the docker0 address, or the container name, but that requires you to setup your NGinX Proxy Manager within the same docker network as the Synapse server... and it can't be the default network.
@MrKristian252
2 жыл бұрын
Any particular reason you chose Synapse over the other "servers" ? The reason I'm asking is because Synapse is written in Python, and I would think performance is better with the ones with deeper programming language
@AwesomeOpenSource
2 жыл бұрын
Not really, I’ve covered several chat systems in the past, and this people kept asking for.
@77.Marlon
2 жыл бұрын
When hitting docker-compose up -d for nginx I it doesn’t install, I get an error saying “ host is already in use by another container”
@AwesomeOpenSource
2 жыл бұрын
You must have something using the ports NGinX Proxy Manager needs. It needs 80, 443, 81.
@raiyanahmed9417
3 жыл бұрын
This is a fantastic tutorial : D, thank you so much for making this! Also I know you've probably been asked this a ton already, but any chance you could show how to set up federations and a few of the most common bridges through docker?
@AwesomeOpenSource
3 жыл бұрын
Federation is on my list. I’ll look into some bridges.
@MouradB
3 жыл бұрын
@@AwesomeOpenSource You've probably dug in deeper than I did, but would adding the 8448 port to docker-compose.yml and to the NPM proxy host (as a Custom Nginx Configuration) be part of the solution?
@AwesomeOpenSource
3 жыл бұрын
@@MouradB yes, definitely, but didn’t solve the problem completely.
@tomnickels7358
Жыл бұрын
@@AwesomeOpenSource Great tutorial, already have a federation solution?
@SKiLLsSoLoN
2 жыл бұрын
How do you upgrade Matrix if you use this method??
@AwesomeOpenSource
2 жыл бұрын
You do "docker-compose pull", then "docker-compose up -d" again.
@stampeedevash4610
3 жыл бұрын
Do you recommend running matrix natively or using docker, for 200++ users?
@AwesomeOpenSource
3 жыл бұрын
It would only be a guess from me, but I would think it should handle it in Docker. May depend more on the underlying host resource then it being in Docker or not.
@stampeedevash4610
3 жыл бұрын
Awesome Open Source thanks for replying. I checked your other videos and it was all awesome. I subscribed right away 😁 I want to understand more about docker, especially for production server and how to optimize the host resources
@wrotruck
2 жыл бұрын
This set up is not capable of federation. There's no "/.well-know/matrix/server" location or the correct DNS entry. I was hoping you were going to show us npm to create this custom location.
@AwesomeOpenSource
2 жыл бұрын
I keep wanting to go back to this, but just haven't had time lately.
@stefanjanicijevic1763
2 жыл бұрын
Sorry i can't reply to the comment where you answered me so i gotta type it new* So i fixed it and i can go and run ssh root@ipadress but i can't do ssh root@domain i don't undestand i've did everything and i added A record to the domain that is pointing and the host (DigitalOcean) any solution to that?
@AwesomeOpenSource
2 жыл бұрын
Sorry, should have been more specific, but you will have a host entry for both the IP and for the domain. Essentially, you'll have an entry for the various ways you may access that server, so you need to clear each.
@stefanjanicijevic1763
2 жыл бұрын
Hey man i can't get into my server it says Host key verification failed. what do i do i've reinstalled the ubuntu and i still can't get it to work. Thanks
@AwesomeOpenSource
2 жыл бұрын
If you are trying to SSH in, then it means till your known hosts file already has a key for the server or machine you are trying to access. You need to remove that entry from the .ssh/known_hosts file in you home directory.
@antonioperez1434
3 жыл бұрын
Hi, and thanks a lot. I installed many times this server but I always have the same problem. With the chat goes perfectly but it's impossible to make a call or a video call. Always showing "connecting call" and nothing happens. Only can make calls on the same network. ¿Any idea? Note: I am using Elementor for phone devices.
@AwesomeOpenSource
3 жыл бұрын
Haven't tried an audio or video call, but I will.
@fertigfs
3 жыл бұрын
Hi man,i got this error as i typed docker logs synapse.... Password reset emails are enabled on this homeserver due to a partial 'email' block. However, the following required keys are missing: email.notif_from Could you help me?
@AwesomeOpenSource
3 жыл бұрын
There are a few email fields you need to fill out if you are trying to setup SMTP. If you decide not to use it, you'll need to go back through and comment those lines out in the configuration file. So, looks like you have the email.notif_from field filled out, or uncommented. You need to comment it out, or fill it out depending on what you're trying to do.
@fertigfs
3 жыл бұрын
@@AwesomeOpenSource thanks i will check it tomorrow
@MiguelMarinho
3 жыл бұрын
Hi, this is a great video. Thank you!^ I just couldn't' get the calls to work outside of my local network (probably something to do with the fact that HTTPS is also not working but that's probably an issue on my end :P )
@AwesomeOpenSource
3 жыл бұрын
Sorry to hear you're having trouble with it. I haven't tried to set it up inside my network, just running on a VPS. Let me know if you find something that might be a good helper hint for the rest of the viewers.
@uTubeJRod
3 жыл бұрын
I had the same issue. if you go to the main matrix.org server there's a Synapse Admin public group, they're super helpful. It sounds like we need something called a TURN server. Install coturn to support WEBRTC. These are just basic notes I kept from when I asked about it. I started digging in and there's a fair bit of work there.
@happyfeethax9975
Жыл бұрын
Love the tutorial, slightly outdated but can't seem to get url previews working
@AwesomeOpenSource
Жыл бұрын
Thanks, glad you enjoyed it.
@losbergs2
2 жыл бұрын
can you show us how to set up federation using the ngginx proxy manager? so that you could join other homeservers from your homeserver
@AwesomeOpenSource
2 жыл бұрын
I've had this request a few times, i'll have to re-do the whole video as I think some other things have changed as well.
@losbergs2
2 жыл бұрын
@@AwesomeOpenSource im setting up my own homeserver the only thing changed is that the homeserver.yml doesn't have 2k lines anymore it has 37 and you have to check docs for more additional settings to put into the yml file. Im just struggling with proxy manager because i don't want to expose the federation port and i don't want to configure the conf file manually. Want to set the federation proxy pass using the Nginxproxy manager UI. Thank you for the video
@marcg1043
Жыл бұрын
hi - thanks for this nice video. Do you know how Synapse and Element actually work together for video calls? I have setup a Synapse server and access it via Elements. The video calls work well, but during a call my Synapse sever CPU/Memory do not move at all. I cannot believe that the chat, call and video data is actually flowing through the synapse server. Do you know?
@AwesomeOpenSource
Жыл бұрын
I don't. I thought they used a service like Jitsi for the audio / video, but they may have their own baked in now.
@statera.digital
2 жыл бұрын
When I try to setup the proxy host it takes me to the nginx page not synapse...
@AwesomeOpenSource
2 жыл бұрын
What ports are you putting in? Did you create a Docker network and put NGinX Proxy Mnager and Synapse on that same network? Not required, but useful to know.
@NimoArts
2 жыл бұрын
I followed your tutorial but see that federation isn't running. What do I have to respect to make federation running with nginx in a case with synapse and nginx running on a pi behind a router? I'm not much into routing yet.
@AwesomeOpenSource
2 жыл бұрын
I've never gotten federation running. Sorry friend.
@kittyyyyyyyy
Жыл бұрын
How you federate an instance like this?
@AwesomeOpenSource
Жыл бұрын
I never got to that point. I'm planning an update on Matrix soon, so I'll make sure to cover federation as well.
@kittyyyyyyyy
Жыл бұрын
@@AwesomeOpenSource i figured it out, oh and the custom location and the ekstra port you expose does little to nothing
@gerry2k74
3 жыл бұрын
Hi, I created a matrix client as part of my final year project for college. How would I go about hosting my own Synapse server on a windows machine? Would I have to get Linux on a VM and then proceed with following the same steps as this video?
@AwesomeOpenSource
3 жыл бұрын
I think you could just run the docker image in Docker for windows (like I show here) and it should work.
@cryptomnesiac
3 жыл бұрын
I read somewhere that it's advised to only use SQLite for testing, and that it should be moved to Postgres instead. However, I can't find any reasoning as to why that is. What's your take on it?
@AwesomeOpenSource
3 жыл бұрын
I imagine, especially for higher use servers, it’s performance based. Postgres and MySQL will perform better with large datasets.
@cryptomnesiac
3 жыл бұрын
@@AwesomeOpenSource that's good news. I plan to keep it a very light use private service. Currently trying to set up token-based registration for the server, making it invite-only rather than enabling public registration. Thanks for the reply!
@Bryan-oe6dy
3 жыл бұрын
Hi thanks for making this tutorial. Do you think I'd be able to follow along as a complete beginner with no prior experience with servers, docker, NGinX, or any of the required technologies? I'm very interested in doing this but I'm not sure if I'm capable of it.
@AwesomeOpenSource
3 жыл бұрын
All I can say is give it a try. I have multiple videos that can walk you through getting Docker installed, NGinX Proxy Manager setup, and then do this one. I should have links in the description and show notes for those steps.
@Bryan-oe6dy
3 жыл бұрын
@@AwesomeOpenSource Thanks for the reply. Great, I'll be going through those videos to make sure I have better odds of success at this.
@jeytis72
3 жыл бұрын
I missed something maybe, but I didn't understand why you set the docker's gateway IP in nginx (172.17.0.1 in Forward Hostname/IP ) instead of the container' IP int that network (maybe 172.17.0.2 or soemthing)?
@AwesomeOpenSource
3 жыл бұрын
I've tried the container's IP in the past with mostly failed results, so I use the docker gateway IP and the port I assigned for the container. In this way think of docker like a router, and the port you assign like a port-forwarding.
@jeytis72
3 жыл бұрын
@@AwesomeOpenSource So, that 8008 port is the "container's" port (internal network) not a host port? Did I get it right? Thanks
@AwesomeOpenSource
3 жыл бұрын
@@jeytis72 There is a port mapping 8008:8008. The left is the host port, and that is mapped (or forwarded) to the right side (in this case also 8008). You can change the left to any port you want, and that's what you'll fill into NGinX Proxy Manager, as it's the gateway port being forwarded to the container port. I know, it's kind of weird and confusing, but I think you're on the right track.
@jeytis72
3 жыл бұрын
@@AwesomeOpenSource I want to make sure that I've got this right. I know that the left side is the host port and the right one is the container port. BUT, since you set the docker gateway IP in the nginx PM, the left port has to be the same as the right port in order to make sure that any request is forwarded to the right place, especially if there are other containers in the same network. Is it right? Thanks
@AwesomeOpenSource
3 жыл бұрын
@@jeytis72 No, those two ports can be different. I set all of my containers with different host ports than the container ports. Someone just left a comment on the NginX Proxy Manager video about creating a new network in docker, adn putting NPM and all the apps on it, then using the hostname of the app instead of the IP. I'll look into that and see if it is a better fit all around as well, then make a video for it in the future.
@stampeedevash4610
3 жыл бұрын
What exactly the benefit of using Admin account on matrix server? Is there any dashboard or something to see user stats etc?
@AwesomeOpenSource
3 жыл бұрын
Not that I found, but you can limit certain functions to admin level users versus non-admins.
@bridgetrobertson7134
3 жыл бұрын
You need an admin account to use awesometechnologies/synapse-admin which is a separate GUI Admin package that lets you add/remove/edit users and delete unwanted media from your server. Indispensable since there's almost no way to moderate anything without it. You also need an admin user to set up "Communities" which are groups of rooms and users that can share resources across different servers. Very handy. Still looking for more stuff it can do but those are the stand-outs.
@AwesomeOpenSource
3 жыл бұрын
@@bridgetrobertson7134 Thank you for the info.
@simvarlach1679
3 жыл бұрын
Hi, great video ! I also built my self-hosted Matrix server on a Synology NAS with Docker. I used the native reverse proxy rather than Nginx. All clients-server connections work but Federating with other servers doesn't. Do you have this working ? Thank you.
@AwesomeOpenSource
3 жыл бұрын
You know, didn't even strike me to try it. I'll check later and see what's up with it.
@nandorras
3 жыл бұрын
@@AwesomeOpenSource Same here. I completely followed everything in the video and read your shownotes. It's up and running but I can't federate with other servers.
@nandorras
3 жыл бұрын
@@AwesomeOpenSource I have since found out that Matrix is running on yet another port: 8448. This is the port that listens to the federation of other servers. At github.com/matrix-org/synapse/blob/develop/docs/reverse_proxy.md you can read how to reverse proxy this but I have no idea how to do this in NPM. Maybe you can help, Brian?
@AwesomeOpenSource
3 жыл бұрын
@@nandorras I’ll take a look later and let you know what I figure out.
@AwesomeOpenSource
3 жыл бұрын
@@nandorras just a thought, I’m not in front of my machine to try it, but you should open your proxy host entry and on the 2nd tab, enter the same info as the first tab, except set up port 8448 to proxy through to your container,. Then you’ll have to forward 8448 on your router to your NPM server do it can handle the request.
@gusevening4910
3 жыл бұрын
This is great. Got it running. Could you do a video on how to get the federation working?
@AwesomeOpenSource
3 жыл бұрын
I'm working on it. If you run straight from your machine / server it isn't difficult, but the process is a bit more complicated with Docker, so working through it.
@gusevening4910
3 жыл бұрын
@@AwesomeOpenSource Thank you. Looking forward to it.
@outbr3akgaming128
3 жыл бұрын
@@AwesomeOpenSource Would love to see this. Got then general matrix working after trying to figure it out a while, then I stumbled upon you and I got through it flawlessly.
@TheRealObamagaming
2 жыл бұрын
@@AwesomeOpenSource do you have a video on how to set up federation?
@fertigfs
3 жыл бұрын
hey guys, how do i start nginx and matrix automatic after a restart?i tried "docker run --restart always but my server was unreachable after a restart.if i type manually docker start it goes...there must be a way to do this automatic
@AwesomeOpenSource
3 жыл бұрын
You can set the restart flag in the docker command or docker compose to "always". --restart always do that for each container. Make sure in dockeer compose, you use the right syntax, but the same idea. also, your comment on how you fixed the issue with the homserver . yaml file got removed. can you post it to the discussion chat over on discuss.opensourceisawesome.com?
@fertigfs
3 жыл бұрын
@@AwesomeOpenSource mmmmh whats the correct command for this? i typed root@matrixx:~# docker run -d --restart always jc21/nginx-proxy-manager:latest but it doesnt start after the reboot. sure i can post it there
@AwesomeOpenSource
3 жыл бұрын
@@fertigfs --restart=always
@fertigfs
3 жыл бұрын
@@AwesomeOpenSource If i do this it ...i get that... docker run --restart=always npm_app_1 Unable to find image 'npm_app_1:latest' locally ^[[Adocker: Error response from daemon: pull access denied for npm_app_1, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'. root@matrixx:~# docker run --restart=always 54645d47fbc8 Unable to find image '54645d47fbc8:latest' locally docker: Error response from daemon: pull access denied for 54645d47fbc8, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.
@fertigfs
3 жыл бұрын
i made a crontab that every minute starts the 3 containers. :) itś a bad but simple
@Naruu13
3 жыл бұрын
Followed your guide. Everything went well. Thanks a bunch. Question though, do you have a guide on how to setup the riot client or do you know of any good guide that also uses docker? Thanks a lot!
@AwesomeOpenSource
3 жыл бұрын
I don't. I just used their online web client, and logged into my server through it.
@Naruu13
3 жыл бұрын
@@AwesomeOpenSource Thank you. Another question, is it possible to use the "letsencrypt" from the nginx container to setup new certs/private keys for a CoTurn container?
@nikilauda3288
2 жыл бұрын
Can i make my server private??
@AwesomeOpenSource
2 жыл бұрын
Yes, just don't setup federation.
@nikilauda3288
2 жыл бұрын
@@AwesomeOpenSource And i dont lose any benefits from using that kind of communication?
@dharamendrakariya3895
3 жыл бұрын
any planning to make a video on jitsi with matrix server, to enable video calling., would be great help. i mean matrix has tons of features and bridges, this can be very useful.
@AwesomeOpenSource
3 жыл бұрын
Let me look into it. I'm still trying to get back to matrix to try and get the federation working on a video.
@derern
3 жыл бұрын
It'd be awesome if you could show in a follow-up whether and if how you got federation set up on NPM for synapse. Reddit is a veritable mess wrt to that combo and I'm honestly lost what to forward where and how to create/link the "/.well-known/xyz" part. Supposedly via locations but if you could enlighten me, that'd be awesome!
@AwesomeOpenSource
3 жыл бұрын
I think I found the solution, and I'm going to get back to this eventually, but haven't had a chance yet.
@freeformaniak
Жыл бұрын
@@AwesomeOpenSource any update on this? would be greatly appreciated as info online seems sparse
@amandeepsingh7873
3 жыл бұрын
If possible please make tutorial on ipfire firewall how we can block https traffic and check user acess logs, thanks
@AwesomeOpenSource
3 жыл бұрын
I'll look into it and see what I can get going.
@unkillablespirits8582
2 жыл бұрын
if digital ocean is breached then you are breached with this setup
@AwesomeOpenSource
2 жыл бұрын
Sure, but it’s the same for your home-lab, or any other provider. Additionally “breached” is a broad term. It doesn’t specifically mean your system is breached. The concepts are the same for running Matrix on a server at your home.
@abhaytanwer9819
2 жыл бұрын
i will setup your matix server with android app
@AwesomeOpenSource
2 жыл бұрын
I appreciate the offer, but I don't have the Matrix server up anymore.
@SilverSultan
2 жыл бұрын
Is it possible to setup a server on an old android device and use that to run bridges between matrix/Element and other messaging apps? (Sorry, I'm quite new to this stuff but this would be my use case scenario)
@summerWTFE
2 жыл бұрын
matrix has ties with WEF. so no thanks
@AwesomeOpenSource
2 жыл бұрын
I'm not sure what WEF is, but I understand if it goes against something you believe in.
@infotruther
2 жыл бұрын
Hate thr music
@AwesomeOpenSource
2 жыл бұрын
sorry to hear that. Hope the content was worth it.
Пікірлер: 168