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

    Prosody + Converse.js

    App Wishlist
    7
    34
    1458
    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.
    • nebulon
      nebulon Staff last edited by girish

      Prosody (http://prosody.im) is a modern XMPP (Jabber) server. Packaging is currently blocked by cloudron/box#136.

      Converse is a nice web frontend for Prosody.

      After discussing this with @nebulon, we agreed that although both apps belong together, it would be best to package them separately.

      1 Reply Last reply Reply Quote 5
      • synchrone
        synchrone last edited by

        Kaiwa is no longer maintained, but there is now inverse.chat.

        I have packaged this as https://git.cloudron.io/synchrone/jabber-app, but also got stuck on TLS certificates.

        jdaviescoates 2 Replies Last reply Reply Quote 3
        • murgero
          murgero App Dev last edited by

          Is there any updates on this? XMPP Would be lovely to have!

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~
          Matrix: @murgero:urgero.org

          1 Reply Last reply Reply Quote 2
          • jdaviescoates
            jdaviescoates @synchrone last edited by

            @synchrone looks like that just points to an install of https://conversejs.org/ now

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply Reply Quote 0
            • S
              syn App Dev last edited by

              Okay, 4 years later, we now have a fairly good prosody 0.12 release (March-June 2022).

              Components like Multi-User Chat, and Proxy65 for file uploads require their own TLS certificates, which is now sort of possible via Secondary Domains aka "httpPorts" introduced in December 2021.

              The only thing missing is accessing those TLS certs via tls add-on. It should work if you just upload your certs to /app/data/certs as well though.

              @jdaviescoates: converse.js gets served on the frontend, yes. There is also a fully featured Prosody.im installation, so it's a fully-featured xmpp/jabber server, and you can use any compatible client app with it.

              girish 1 Reply Last reply Reply Quote 4
              • Referenced by  S syn 
              • girish
                girish Staff @syn last edited by girish

                @syn said in Prosody + Kaiwa:

                Components like Multi-User Chat, and Proxy65 for file uploads require their own TLS certificates, which is now sort of possible via Secondary Domains aka "httpPorts" introduced in December 2021.

                So each feature is in it's own subdomain, is it? How many such features are there? I don't have much idea about prosody as such as you can tell 🙂

                FWIW, IIRC, in Jitsi which uses prosody underneath as well, the subdomains are just virtual subdomains. They don't need to be real (cc @nebulon )

                S 1 Reply Last reply Reply Quote 0
                • S
                  syn App Dev @girish last edited by syn

                  @girish in my provisional implementation I am using the key from httpPort for a predictable certificate/key locations.

                  given:

                  "httpPorts": {
                      "CONFERENCE_DOMAIN": {
                        "title": "Conference Service Domain",
                        "description": "XEP-0045 domain",
                        "containerPort": 5280,
                        "defaultValue": "conference.chat"
                      }
                    },
                  

                  the expected paths by convention are:

                  ssl = {
                          certificate = "/etc/certs/secondary/CONFERENCE_DOMAIN.cert";
                          key = "/etc/certs/secondary/CONFERENCE_DOMAIN.key";
                      }
                  

                  but I do not insist on this method. I would be perfectly fine with listing that directory to find out which domains exist, as well as environment variable based paths per a predictable httpPorts key.

                  So each feature is in it's own subdomain, is it?

                  not necessarily. E.g file uploads and proxy65 turned out to not need their own TLS certificates.

                  However, XMPP components that participate in federation MUST authenticate themselves for server-to-server communication via TLS. In my current configuration there is a Multi-User chat component that acts as it's own entity under "conference.chat.example.com" and must present a CA-trusted TLS certificate for that domain. Same goes for pubsub service.

                  This is necessary because other XMPP servers will expect to talk to "conference.chat.example.com" on port 5269 or 5222 with STARTTLS.

                  I do not expect many more components to be there. In total under 5 in the scope of this app. There may be a different XMPP Transports app that will have it's own configuration, but right now I'm focused on getting the core functionality.

                  As to why Jitsi is working ... I would need to check that code, but perhaps they do not do server-to-server xmpp ? Everything would happily work within the boundaries of the single prosody server, but outside world XMPP federation wouldn't work.

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

                    @syn said in Prosody + Kaiwa:

                    As to why Jitsi is working ... I would need to check that code, but perhaps they do not do server-to-server xmpp ? Everything would happily work within the boundaries of the single prosody server, but outside world XMPP federation wouldn't work.

                    Ah, good point. Indeed, jitsi doesn't talk to anything else.

                    I will incorporate your main patch in 7.3 itself if time permit. Trying to get it out this week.

                    S 1 Reply Last reply Reply Quote 2
                    • S
                      syn App Dev @girish last edited by

                      @girish sure. This has waited for years. Can wait another couple months 🙂

                      Also can you please rename this topic into "Prosody + Converse.js" ? Kaiwa is long since unmaintained and even forks have also dried up.

                      1 Reply Last reply Reply Quote 2
                      • S
                        syn App Dev last edited by syn

                        Ok, certificates are in place (thanks @girish) so now jabber-app is in a useable state with server-to-server communication, AND mutli-user chatrooms support.

                        One problem is that when we limit MUC room creation to local users only (so random people off the internet won't be able to create public rooms on your conference.example.com) - prosody expects your local JIDs to be user@example.com, not user@chat.example.com.

                        I have side-stepped this by defaulting jabber-app's conference subdomain to conference.chat.example.com, and not conference.example.com. So it's possible misconfiguration by the end user will result in the MUC component not being functional.

                        Another problem is, I would like to be able to use cloudron's apex domain as my JID host (syn@example.com, not syn@chat.example.com)

                        That requires 2 things:

                        • DNS management to add SRV records (we can probably have the users manually do that with a generated instruction)
                        • Access to the TLS certificate for apex domain
                          • alternatively, TLS-proxied ports 5223/5270, although I'm not certain what is the state of Direct TLS adoption among clients/server implementations these days

                        then a small patch for prosofy.cfg.lua should enable those upper-level VirtualHosts, and it's done.

                        murgero 1 Reply Last reply Reply Quote 3
                        • murgero
                          murgero App Dev @syn last edited by

                          @syn Have you seen Snikket? It's a prosody clone I believe but it is way easier to setup

                          --
                          https://urgero.org
                          ~ Professional Nerd. Freelance Programmer. ~
                          Matrix: @murgero:urgero.org

                          jdaviescoates S 2 Replies Last reply Reply Quote 1
                          • jdaviescoates
                            jdaviescoates @murgero last edited by

                            @murgero said in Prosody + Converse.js:

                            Snikket

                            +1

                            It's also written by the same person who is main Prosody dev too.

                            Upvote here: https://forum.cloudron.io/post/23291

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply Reply Quote 0
                            • S
                              syn App Dev @murgero last edited by

                              @murgero I have. From what i see - it does not have the actual web client, just the management interface.

                              As for the XMPP server itself - it is in fact prosody, so nothing special there.

                              Why?

                              murgero 1 Reply Last reply Reply Quote 0
                              • murgero
                                murgero App Dev @syn last edited by

                                @syn Just wondering if it would be easier to bundle snikket since it has the scripts to setup automatically already?

                                --
                                https://urgero.org
                                ~ Professional Nerd. Freelance Programmer. ~
                                Matrix: @murgero:urgero.org

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  syn App Dev @murgero last edited by

                                  @murgero the blockers for my dream-world Jabber app on Cloudron are not related to configuring prosody. It's done already and I for one am using the current jabber-app daily.

                                  The remaining issues are related to lack of interfaces to editing DNS (SRV, TXT) records from inside cloudron apps. That is going to affect any XMPP implementation.

                                  I appreciate your feedback, but please look into the actual limitations instead of jumping to between shiny end-user brandings.

                                  jdaviescoates murgero 2 Replies Last reply Reply Quote 1
                                  • jdaviescoates
                                    jdaviescoates @syn last edited by

                                    @syn said in Prosody + Converse.js:

                                    It's done already and I for one am using the current jabber-app daily.

                                    What Jabber app?

                                    I use Cloudron with Gandi & Hetzner

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      syn App Dev @jdaviescoates last edited by

                                      @jdaviescoates as I posted on 18 Jul 2018, 20:23:

                                      I have packaged this as https://git.cloudron.io/synchrone/jabber-app

                                      murgero 1 Reply Last reply Reply Quote 1
                                      • murgero
                                        murgero App Dev @syn last edited by

                                        @syn Oh! My bad. I've been out of the community for a few months and just coming back now.

                                        --
                                        https://urgero.org
                                        ~ Professional Nerd. Freelance Programmer. ~
                                        Matrix: @murgero:urgero.org

                                        S 1 Reply Last reply Reply Quote 0
                                        • murgero
                                          murgero App Dev @syn last edited by

                                          @syn I'd like to build and install, what's the proper way to do this while waiting for this beautiful app to hit the store.

                                          --
                                          https://urgero.org
                                          ~ Professional Nerd. Freelance Programmer. ~
                                          Matrix: @murgero:urgero.org

                                          robi 1 Reply Last reply Reply Quote 0
                                          • robi
                                            robi @murgero last edited by

                                            @murgero https://docs.cloudron.io/packaging/tutorial/#update

                                            Life of Advanced Technology

                                            murgero 1 Reply Last reply Reply Quote 0
                                            • murgero
                                              murgero App Dev @robi last edited by

                                              @robi Hey Robi, I am an app dev with Cloudron (RE: the appdev tag) so I know how to package and install apps. My question was more the after-install setup as he mentioned some manual steps (but was not specific)

                                              --
                                              https://urgero.org
                                              ~ Professional Nerd. Freelance Programmer. ~
                                              Matrix: @murgero:urgero.org

                                              robi 1 Reply Last reply Reply Quote 0
                                              • robi
                                                robi @murgero last edited by

                                                @murgero Lol, sorry, thought you were getting rusty ;-]

                                                Thanks that's more specific.

                                                Life of Advanced Technology

                                                murgero 1 Reply Last reply Reply Quote 1
                                                • murgero
                                                  murgero App Dev @robi last edited by

                                                  @robi Thanks for helping anyway! Never a bad thing to give good info.

                                                  --
                                                  https://urgero.org
                                                  ~ Professional Nerd. Freelance Programmer. ~
                                                  Matrix: @murgero:urgero.org

                                                  1 Reply Last reply Reply Quote 0
                                                  • S
                                                    syn App Dev @murgero last edited by

                                                    @murgero If you want to use JIDs like murgero@chat.example.com - no special instructions, it works as is.

                                                    If you want your JID to be murgero@example.com - currently you must choose example.com as cloudron app domain, otherwise it won't work.

                                                    XMPP allows you to have JIDs on a different server than where A-record is pointing to, see https://www.rfc-editor.org/rfc/rfc6120#section-3.2.1

                                                    Notice that the server must present a valid CA-trusted TLS certificate for example.com in this set up, not it's own chat.example.com.

                                                    Currently prosody.cfg.lua is not set up to handle other domains except the one that the app is installed as. For me it does not make sense to implement the config handling unless I have a way to provide no-manual-actions experience.

                                                    Feel free to contribute though.

                                                    murgero 1 Reply Last reply Reply Quote 0
                                                    • murgero
                                                      murgero App Dev @syn last edited by

                                                      @syn Gotcha, for a lot of users, domain will matter. Hopefully cloudron will allow more cert access for first level domains. I'd love to test this out as well.

                                                      You use converse.js for this, have you looked into movim at all for a front end too?

                                                      --
                                                      https://urgero.org
                                                      ~ Professional Nerd. Freelance Programmer. ~
                                                      Matrix: @murgero:urgero.org

                                                      S 1 Reply Last reply Reply Quote 0
                                                      • S
                                                        syn App Dev @murgero last edited by

                                                        @murgero movim looks interesting, I can totally see it as another app on cloudron. XMPP allows for 3rd party web clients over BOSH/websockets. I would set up CORS on prosody for this, if not already supported.

                                                        1 Reply Last reply Reply Quote 2
                                                        • S
                                                          syn App Dev last edited by

                                                          @girish I consider this app ready for Beta submission to cloudron app store.

                                                          jdaviescoates 1 Reply Last reply Reply Quote 2
                                                          • jdaviescoates
                                                            jdaviescoates @syn last edited by

                                                            @syn said in Prosody + Converse.js:

                                                            @girish I consider this app ready for Beta submission to cloudron app store.

                                                            sounds great, I may have missed it, but where is the code?

                                                            I use Cloudron with Gandi & Hetzner

                                                            robi 1 Reply Last reply Reply Quote 0
                                                            • robi
                                                              robi @jdaviescoates last edited by

                                                              @jdaviescoates said in Prosody + Converse.js:

                                                              @syn said in Prosody + Converse.js:

                                                              @girish I consider this app ready for Beta submission to cloudron app store.

                                                              sounds great, I may have missed it, but where is the code?

                                                              scroll up bud, you've asked this before 😉

                                                              Life of Advanced Technology

                                                              jdaviescoates 2 Replies Last reply Reply Quote 1
                                                              • jdaviescoates
                                                                jdaviescoates @robi last edited by

                                                                @robi said in Prosody + Converse.js:

                                                                @jdaviescoates said in Prosody + Converse.js:

                                                                @syn said in Prosody + Converse.js:

                                                                @girish I consider this app ready for Beta submission to cloudron app store.

                                                                sounds great, I may have missed it, but where is the code?

                                                                scroll up bud, you've asked this before 😉

                                                                😆

                                                                I use Cloudron with Gandi & Hetzner

                                                                1 Reply Last reply Reply Quote 0
                                                                • jdaviescoates
                                                                  jdaviescoates @synchrone last edited by

                                                                  Here it is:

                                                                  @synchrone said in Prosody + Converse.js:

                                                                  I have packaged this as https://git.cloudron.io/synchrone/jabber-app

                                                                  I use Cloudron with Gandi & Hetzner

                                                                  1 Reply Last reply Reply Quote 1
                                                                  • jdaviescoates
                                                                    jdaviescoates @robi last edited by jdaviescoates

                                                                    @robi said in Prosody + Converse.js:

                                                                    @jdaviescoates said in Prosody + Converse.js:

                                                                    @syn said in Prosody + Converse.js:

                                                                    @girish I consider this app ready for Beta submission to cloudron app store.

                                                                    sounds great, I may have missed it, but where is the code?

                                                                    scroll up bud, you've asked this before 😉

                                                                    I think I got confused because @synchrone has turned into @syn 😉

                                                                    I use Cloudron with Gandi & Hetzner

                                                                    S 1 Reply Last reply Reply Quote 0
                                                                    • S
                                                                      syn App Dev @jdaviescoates last edited by

                                                                      I wanted to keep using the account that has the app dev badge 🙂
                                                                      Also may have lost access to the old one over the years.

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

                                                                        @syn awesome 🙂 There's some apps that we are pushing out right now, will get to this. Thanks!

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