Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved matrix.org (communication)

    App Wishlist
    20
    149
    15810
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • girish
      girish Staff last edited by

      @will The goal for this year is to get many more app packages out πŸ™‚

      1 Reply Last reply Reply Quote 4
      • T
        timka last edited by

        I'm totaly looking forward to matrix.
        Any news? ^^

        1 Reply Last reply Reply Quote 3
        • yusf
          yusf last edited by

          Riot is a few versions behind (current stable is v1.5.10). Is there any movement on bringing the Matrix app to the App Store?

          1 Reply Last reply Reply Quote 2
          • W
            why42 last edited by

            I am really looking forward to the Matrix app and an updated Riot version.

            1 Reply Last reply Reply Quote 3
            • yusf
              yusf last edited by

              Glancing turnserver.conf TURN doesn't seem to have been integrated yet so that should probably be done before App Store release.

              1 Reply Last reply Reply Quote 2
              • C
                caglar last edited by

                I am waiting for the Matrix App, is there any good news about it? or can we use it now?

                1 Reply Last reply Reply Quote 2
                • yusf
                  yusf last edited by yusf

                  New critical Synapse update released, 1.12.0. Ping @msbt πŸ””

                  1 Reply Last reply Reply Quote 2
                  • M
                    msbt App Dev last edited by

                    Updated the repo (also changed manifestformat to v2), tested fresh install and updated my existing installations (but without extensive tests, like email and such) and it seems to work.

                    1 Reply Last reply Reply Quote 2
                    • yusf
                      yusf last edited by

                      Thank you! Are you still maintaining the Riot app? It's a few releases behind as well. 😊

                      1 Reply Last reply Reply Quote 0
                      • M
                        msbt App Dev last edited by

                        I am for myself, but I figured people were going to use the official repo @girish created some time ago. Pushed another update for my old riot here.

                        yusf 1 Reply Last reply Reply Quote 0
                        • yusf
                          yusf @msbt last edited by yusf

                          @msbt I understand. I meant the official one. It's annoying having to build manually. So πŸ”” to @girish!

                          1 Reply Last reply Reply Quote 1
                          • girish
                            girish Staff last edited by

                            We just integrated coturn into master branch yesterday. So, we are waiting for testing it a bit to get matrix published. Otherwise, the first complaint is going to be that voice doesn't work...

                            M N 2 Replies Last reply Reply Quote 6
                            • M
                              msbt App Dev @girish last edited by

                              @girish said in matrix.org (communication):

                              We just integrated coturn into master branch yesterday. So, we are waiting for testing it a bit to get matrix published. Otherwise, the first complaint is going to be that voice doesn't work...

                              nice!

                              1 Reply Last reply Reply Quote 3
                              • N
                                NCKNE @girish last edited by

                                @girish Awesome! You guys really know how to set priorities and I love the direction cloudron development is going in! Great job guys!

                                1 Reply Last reply Reply Quote 4
                                • girish
                                  girish Staff last edited by

                                  This is almost working now - https://git.cloudron.io/cloudron/matrix-synapse-app/ (based off @msbt 's work)! I am testing out the federation bits, after that I will get this published.

                                  yusf subven 2 Replies Last reply Reply Quote 4
                                  • M
                                    msbt App Dev last edited by

                                    nice @girish, didn't know about the yq thing, way better than what I've been doing πŸ˜„

                                    1 Reply Last reply Reply Quote 0
                                    • girish
                                      girish Staff last edited by

                                      @msbt yeah, luckily you already figured out what needs to be patched in the yaml file each time πŸ™‚ so it was a straight forward port.

                                      1 Reply Last reply Reply Quote 0
                                      • yusf
                                        yusf @girish last edited by

                                        @girish That’s amazing news! Thank you for the hard work.

                                        Did you get link previews etc sorted as well? Will there be an upgrade path from msbt’s package?

                                        yusf 1 Reply Last reply Reply Quote 0
                                        • subven
                                          subven @girish last edited by

                                          @girish said in matrix.org (communication):

                                          This is almost working now - https://git.cloudron.io/cloudron/matrix-synapse-app/ (based off @msbt 's work)! I am testing out the federation bits, after that I will get this published.

                                          I assumed federation support would be very tricky for cloudron but than I saw how you managed stuff like federation port and well.known πŸ™‚ Hope you have fun with the federationtester ^^ Are you using ma1sd or mxisd?

                                          We "fixed" it with a nginx that proxy passes requests on any hostname with path /.well-known/ to matrix.domain.com/.well-known/ 😧

                                          1 Reply Last reply Reply Quote 0
                                          • girish
                                            girish Staff last edited by

                                            @subven Yes, I am not 100% sure if the configuration I have actually works (for federation) but in theory it should. For the well-known, we are looking into adding this to Cloudron itself (probably in the domains view). We can then do mail auto-discovery, mastodon etc.

                                            N 1 Reply Last reply Reply Quote 4
                                            • N
                                              NCKNE @girish last edited by

                                              @girish said in matrix.org (communication):

                                              @subven Yes, I am not 100% sure if the configuration I have actually works (for federation) but in theory it should. For the well-known, we are looking into adding this to Cloudron itself (probably in the domains view). We can then do mail auto-discovery, mastodon etc.

                                              Heads up for adding the well-known to the root domain! As you said, this would add autoconfig for mail as well which would be great. Not quite sure if this could be added as a configurable feature for Caldav for example, as users could use different Caldav server (Sogo, Nextcloud, etc.)

                                              1 Reply Last reply Reply Quote 2
                                              • M
                                                msbt App Dev last edited by

                                                for people using my matrix installation: if you're on the latest cloudron version (>=5.1), you need to disable the turn port, else it will prohibit the real turn service to start up because the main port is in use.

                                                09f63a26-aa5f-477d-8719-d71a8557a480-grafik.png

                                                S 1 Reply Last reply Reply Quote 1
                                                • yusf
                                                  yusf @yusf last edited by

                                                  @yusf said in matrix.org (communication):

                                                  Will there be an upgrade path from msbt’s package?

                                                  1 Reply Last reply Reply Quote 0
                                                  • S
                                                    stantropics @msbt last edited by

                                                    @msbt Thanks for the work you put in it!
                                                    I have successfully deployed the app, it was necessary do edit CloudronManifest.json and remove the udp ports there.
                                                    Do you know how the postgresql db can be edited to make a user an admin? I would like to follow the documentation here: https://github.com/matrix-org/synapse/wiki

                                                    jimscarver 1 Reply Last reply Reply Quote 1
                                                    • M
                                                      msbt App Dev last edited by

                                                      You're welcome! I'd rather wait until the cloudron package is final before tinkering around πŸ˜‰

                                                      1 Reply Last reply Reply Quote 2
                                                      • girish
                                                        girish Staff last edited by

                                                        I managed to get federation working just now, yay! I will make matrix available tomorrow πŸ™‚ It does require a new Cloudron release for well-known support.

                                                        2290de00-5883-4d46-92f7-16320fa80f31-image.png

                                                        1 Reply Last reply Reply Quote 7
                                                        • yusf
                                                          yusf last edited by yusf

                                                          2cab1b67-ac11-4463-9374-678be17eb6ec-image.jpeg

                                                          That feeling when something you’ve wanted for years finally realizes.

                                                          1 Reply Last reply Reply Quote 7
                                                          • S
                                                            stantropics last edited by

                                                            First of all, thanks to everyone who has been working on the matrix app. I'm very happy to be able to run it on cloudron! πŸ™‚ πŸ‘
                                                            I have two questions/points that I would like to discuss and hope this is the right place:

                                                            1. Setting up the root-domain for federation use.
                                                              When installing matrix synapse it is necessary (at least for me) to set the root domain (example.com) as a redirect URL for matrix.example.com to make federation work. As far as I know only port 8448 is needed on the root-domain to make federation work. Using my workaround I am not able to use another app with the root domain (e.g. a website or any other service). Is there any way to avoid this?

                                                            2. Making a user an administrator.
                                                              Referring to the documentation (https://github.com/matrix-org/synapse/wiki) one command needs to be executed to make a user an admin - it manipulates the data in the postgresdb:
                                                              UPDATE users SET admin = 1 WHERE name = '@foo:bar.com'
                                                              What is the recommended way to perform this on Cloudron?

                                                            Thanks a lot in advance.
                                                            Stay healthy everyone!

                                                            1 Reply Last reply Reply Quote 2
                                                            • M
                                                              msbt App Dev last edited by

                                                              I installed a test-instance as well on a subdomain and neither federation nor the integrations are available. @girish ping me on the chat for debugging πŸ˜‰

                                                              scooke 1 Reply Last reply Reply Quote 0
                                                              • girish
                                                                girish Staff last edited by

                                                                @stantropics What can an admin do? Does he get some special controls in Riot? I couldn't figure out how to test it, so I left that part out.

                                                                1 Reply Last reply Reply Quote 0
                                                                • scooke
                                                                  scooke @msbt last edited by

                                                                  @msbt The RIOT First Time Documentation notes that you need to tweak the Matrix Synapse home server. I found that the install uses the domain you give it but assumes 'matrix' is the subdomain. My subdomain was different and I had to tweak both the Matrix Synapse config and the RIOT config and then I restarted both, Then it worked. Check out the little drop-down tab "Documentation" and the First Time Setup, and follow the links there. I hope the issue is this simple.

                                                                  First Time Setup
                                                                  This app is only the frontend for Matrix. If you haven't done so already you should install the Matrix Synapse home server in a subdomain like matrix.yourdomain.com.

                                                                  This app is pre-configured to use the matrix installation at matrix.yourdomain.com. If you installed Synapse at another location, use the Web Terminal to edit /app/data/config.json to set the home server.

                                                                  A life lived in fear is a life half-lived

                                                                  1 Reply Last reply Reply Quote 0
                                                                  • girish
                                                                    girish Staff last edited by

                                                                    I just announced this - https://forum.cloudron.io/topic/2336/matrix-riot . Can you guys give it a quick read and tell what to improve there?

                                                                    scooke 1 Reply Last reply Reply Quote 2
                                                                    • scooke
                                                                      scooke @girish last edited by scooke

                                                                      @girish Do you want the comments here? All I can say is that this section:

                                                                      Riot is pre-configured to use matrix subdomain as the homeserver location.
                                                                      

                                                                      ought to be more evident. Like at the start of a paragraph. It's the sort of essential info that real coders like yourself just know but tinkerers like me don't.

                                                                      Another line that could use some clarifying is:

                                                                      SSH into the server and add the record like this
                                                                      

                                                                      My own impression from using Cloudron is that there is no need to ssh into the server and that using the built-in Terminal is the place to get things done if needed. I followed it literally, but I also think someone could read it and think "they must mean through the Console of the app...but which one, the Matrix server or the RIOT app?" and proceed to get confused because they can't navigate to

                                                                      /home/yellowtent/boxdata/well-known/
                                                                      

                                                                      .
                                                                      Finally, in Step 3, after the line:

                                                                      If you installed synapse at matrix.example.com, the client should be already able to connect
                                                                      

                                                                      maybe you could add something like "check Step 1" as a reminder because someone will prob skip it and then get here wondering what's going on.

                                                                      Finally, thank you again.

                                                                      A life lived in fear is a life half-lived

                                                                      1 Reply Last reply Reply Quote 2
                                                                      • M
                                                                        msbt App Dev last edited by

                                                                        everything works fine now, no idea what caused the issues, all good, thanks @girish

                                                                        S 1 Reply Last reply Reply Quote 0
                                                                        • girish
                                                                          girish Staff last edited by

                                                                          @scooke Thanks for the feedback, will fix up the docs.

                                                                          The SSH is a bit rough agreed πŸ™‚ We will add a UI for .well-known records in the coming releases. For now, we wanted the apps out, so we can get some testing in parallel.

                                                                          1 Reply Last reply Reply Quote 2
                                                                          • S
                                                                            stantropics @msbt last edited by

                                                                            @msbt do you also have to set a redirect record for example.com to make it work? Or is it just me?

                                                                            1 Reply Last reply Reply Quote 0
                                                                            • girish
                                                                              girish Staff last edited by

                                                                              @stantropics You don't need to setup redirects. Is the website example.com an app on Cloudron (or is it external to Cloudron) ? If it's the former, you just have to setup that .well-known record.

                                                                              1 Reply Last reply Reply Quote 0
                                                                              • M
                                                                                msbt App Dev last edited by

                                                                                @stantropics I had a surfer app at example.com and curl'ing the well-known url gave me a 404. After a bit of reconfiguring it worked, not sure if that's your setup as well, but maybe try reconfiguring the example.com app and see if that solves your issue (if that's what you're asking)

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • S
                                                                                  stantropics last edited by stantropics

                                                                                  @msbt @girish I am not using the root-domain (example.com) at all currently. But matrix seems to not work if I don't set it up as a redirect for matrix.example.com.

                                                                                  1 Reply Last reply Reply Quote 0
                                                                                  • girish
                                                                                    girish Staff last edited by

                                                                                    Can you post your setup here with example domain names of where you installed what - https://forum.cloudron.io/topic/2336/matrix-riot ? I can help out there.

                                                                                    I will lock this thread, since 2 open posts for the same topic is confusing!

                                                                                    1 Reply Last reply Reply Quote 2
                                                                                    • jimscarver
                                                                                      jimscarver @stantropics last edited by

                                                                                      @stantropics In the terminal you should be able run the psql command to update a user to admin.
                                                                                      To get the password type:
                                                                                      echo $CLOUDRON_POSTGRESQL_PASSWORD

                                                                                      psql --host=$CLOUDRON_POSTGRESQL_HOST port=$CLOUDRON_POSTGRESQL_PORT $CLOUDRON_POSTGRESQL_DATABASE $CLOUDRON_POSTGRESQL_USERNAME

                                                                                      [right-click-Copy and ctrl-v paste in the password]

                                                                                      UPDATE users SET admin = 1 WHERE name = '@foo:bar.com';

                                                                                      BUT: I am getting: psql: FATAL: password authentication failed for user ...

                                                                                      Can anyone see what I am doing wrong? @girish ?

                                                                                      1 Reply Last reply Reply Quote 0
                                                                                      • girish
                                                                                        girish Staff last edited by

                                                                                        @jimscarver In the Terminal, there is a Postgres button on the top. Just clicking it will paste the command to connect to postgres. Just paste enter after that.

                                                                                        511da217-1649-4dcf-a58a-7e0a34201df4-image.png

                                                                                        (That aside, I think the mistake in your cli is possibly that the database name is not set)

                                                                                        1 Reply Last reply Reply Quote 1
                                                                                        • benborges
                                                                                          benborges @yusf last edited by

                                                                                          @yusf Do we have any update on this ?
                                                                                          i would like to use webhooks with my matrix instance but i'm kinda confused on what is the state of these bridges/app for matrix/element & cloudron.

                                                                                          1 Reply Last reply Reply Quote 0
                                                                                          • First post
                                                                                            Last post
                                                                                          Powered by NodeBB