• Ne chevron_right

      This should be

      𝖈𝖍𝖚𝖓𝖐 · pubsub.toofast.vip / news · Wednesday, 16 November, 2022 - 08:55


    Second time around since ejabberd migration, from prosody, is going better. I had some awkward pubsub settings yesterday afternoon where a user somehow when posting created their comment node on the not comments.toofast.vip pubsub service, which is dedicated for comments in movim. Not their fault just that there was literally no way to delete that node except delete the entire pubsub data. As far as I had patience to discover anyways.

    So long as nothing else goes wrong from here I'm going to leave it alone aha.. This round however has 1 special perk that is no upload.toofast.vip:5443/upload/etc/file.ext and http uploads are reverse proxied for 100MB max filesize uploads :D I think I did, well, terribly, lol for having not planned any of this at all. However it worked out.

    If this message disappears it means squirrels have taken over engine bays 4 and 9 and the invasion is well underway. I am rather confident in the setup. Cheers to all you fast folks, happy chatting!


    #toofast #ejabberd #migration #servernews

    • Ne chevron_right

      A brand new TooFast.vip

      𝖈𝖍𝖚𝖓𝖐 · pubsub.toofast.vip / news · Tuesday, 15 November, 2022 - 11:58 · 1 minute

    Well sort of brand new. I've migrated from Prosody to Ejabberd server for the XMPP part. It did not go 100% smoothly and in the end we've lost a bit of data including the old PubSub data. That did not migrate but suppose it's not the end of the world but the beginning of a new world! A new world for TooFast.vip & Movim here :D

    If you all might recall the reason I chose to do this is so that comments and likes would work as expected and not have to wait for version 0.13 of prosody to come out for that and the community avatars to work. There was just too few of the, what would seem like, core objects of Movim that would work using a Prosody server. I was disheartened by that indeed but now I suppose content generation can begin again properly.

    There was only like 4 unique users on TooFast.vip and as far as I can tell nobody is affected by these changes. Now I just have to debug some stuff with this Movim instance however because avatars and bookmarks are doing unexpected things. One might have to reupload their avatar is the most trouble caused.

    To the future! :D #toofast #movim #ejabberd

    • Ca chevron_right

      Cakes??!

      chunk · post.xml.cakes.lol / cakes · Thursday, 10 November, 2022 - 10:06 edit

    Hopefully things will start to produce in this here pubsub area of debate..... Good news so far though is that I discovered I can host pubsub stuff from cakes.lol without needing a movim instance.. In essence that shortcuts my efforts by half!

    #cakes #pubsub #ejabberd

    • chevron_right

      I love Free Software

      Stefan · Sunday, 14 February, 2021 - 15:20

    Happy Free Software Day!

    #iloveFS

    • Wa chevron_right

      ejabberd and CA Certificates

      pubsub.slavino.sk / warlord0blog · Saturday, 23 January, 2021 - 19:25 edit

    When running the ejabberd docker image in my container set I ran into a problem where I hit the rate limiter on Let’s Encrypt. This meant I could switch to the staging ACME, which would mean untrusted CA certificate errors, or use a previously issued certificate set until my blockage was cleared. Should be easy &ellipsisRead the full post »

    Značky: #xmpp, #ejabberd, #docker, #Linux

    • Wa chevron_right

      mod_shared_roster_ldap

      pubsub.slavino.sk / warlord0blog · Thursday, 21 January, 2021 - 18:28 edit

    Getting this shared roster from LDAP into my ejabberd config has been an absolute nightmare. Everything I find seems to be people asking the same question or the comments made are for old versions. I struggled to find examples of a known good working example that used OpenLDAP and LDAP attributes for groupOfUniqueNames. First, let &ellipsisRead the full post »

    Značky: #Linux, #ejabberd, #xmpp

    • chevron_right

      Chat picture resolver and Telegram stickers

      Timothée Jaussoin · pubsub.movim.eu / Movim · Friday, 15 May, 2020 - 07:50 edit · 3 minutes

    Movim 0.18 is planned to be released soon.

    In the meantime, let's have a look at one specific feature that is really useful when you integrate Movim with the Spectrum2 - Telegram bridge.

    For those that are not aware, XMPP can connect to other chat networks using tools called "transport". One of the most used is called Spectrum2 and can connect to many other networks thanks to its libpurple support.

    Telegram transport setup

    What will we do here is:

    • Setup telegram-purple in Spectrum2 on Debian
    • Connect it to a XMPP server (here ejabberd)
    • Adapt the transport to integrate with Movim

    Setup Spectrum2 and telegram-purple

    Here I will not detail the basic installation, the official Spectrum2 documentation is pretty complete.

    Once the repository is setup, please install the base package and the libpurple module:

    apt install spectrum2 spectrum2-backend-libpurple
    

    For telegram-purple the README is also quite complete

    Create a Telegram transport

    Once all the packages are setup, we will create a transport configuration file. You can reuse the spectrum.cfg.example located in the /etc/spectrum2/transports/ as a base.

    # nano /etc/spectrum2/transports/spectrum_telegram.cfg
    

    This is basically the config file that I used for my own telegram.movim.eu transport:

    [service]
    server_mode = 0
    user=spectrum
    
    jid = telegram.movim.eu
    password = spectrumpassword
    server = 127.0.0.1
    port = 5347
    backend_host = 127.0.0.1
    
    users_per_backend=10
    
    backend=/usr/bin/spectrum2_libpurple_backend
    protocol=prpl-telegram
    
    web_directory=/home/movim/upload/spectrum
    web_url=https://upload.movim.eu/spectrum
    
    [identity]
    name=Telegram Transport
    type=telegram
    
    [logging]
    config = /etc/spectrum2/logging.cfg
    backend_config = /etc/spectrum2/backend-logging.cfg
    
    [database]
    type = sqlite3
    
    [registration]
    enable_public_registration=1
    

    When Spectrum2 will connect to the Telegram network, the stickers will be downloaded as files on the server. By default an ugly path is simply sent to the XMPP clients. We will turn it to a proper URL and let Movim to its magic.

    To do that we need to configure the Web Storage module. You can also find more documentation about it there.

    web_directory=/home/movim/upload/spectrum
    web_url=https://upload.movim.eu/spectrum
    

    It's pretty self explanatory. The downloaded stickers will be put in the web_directory directory. The second parameter, web_url, is basically telling Spectrum2 how to general its URL before sending them in the messages.

    Configure ejabberd

    Then we need to add a new service in our ejabberd.yml configuration file.

      -
        port: 5347
        module: ejabberd_service
        access: all
        ip: "127.0.0.1"
        global_routes: false
        hosts:
          "telegram.movim.eu":
            password: "spectrumpassword"
    

    Once everything is setup, restart Spectrum2 and ejabberd. For Spectrum2 you can do it using spectrum2_manager or a dedicated systemd configuration file.

    Configure our web server

    We then need to expose those files to the web. A simple nginx configuration will handle it.

    server {
        server_name upload.movim.eu;
    
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
    
        …
    
        root /home/movim/upload;
    
        location /spectrum {
            alias /home/movim/movim/spectrum;
        }
    }
    

    Fix the nasty file rights with Incron

    If you start to use your Telegram transport at this point you'll notice that the stickers URLs are returning a 403 Forbidden error.

    Indeed, Spectrum2 is writting the files in the directory using it's own rights. And this can't be configured.

    We will then use another useful tool called Incron. This tool works like CRON but instead of working on time events, it works on file events.

    You can find a pretty complete documentation there.

    apt install incron 
    nano /etc/incron.allow # add your spectrum user there
    sudo -su spectrum
    incrontab -e
    

    In the incrontab file well then change dynamicaly the rights of the files once they are wrote in the directory (check the documentation for more details).

    /home/movim/upload/spectrum   IN_CLOSE_WRITE          chmod 664 $@/$#
    

    Enjoy your nice Telegram stickers in Movim

    In Movim, nothing more to do. With the version 0.18, Movim will try to resolve the incoming messages that contains a URL and see if it's a valid picture. Which is the case for Telegram stickers.

    Telegram stickers displayed in the Movim chat

    You can also note that it works for any other incoming picture URL, including those sent using Conversations or other XMPP clients.

    That's all folks!

    #telegram #xmpp #movim #transport #stickers #ejabberd #admin

    • chevron_right

      XMPP Hacking Night

      debacle · pubsub.movim.eu / berlin-xmpp-meetup · Tuesday, 7 January, 2020 - 16:53 edit

    XMPP Hacking Night

    Instead of boring talk, this time, we will hack on our favourtite projects, hopefully XMPP related. Some ideas: See the tags! Non-hackers welcome, if you have fun watching programming monkeys at their outdated notebook computers. Anyway, there will be a lot of chit chat.

    When? Wednesday, 2020-01-08 18:00 CET (always 2ⁿᵈ Wednesday of every month)

    Where?xHain hack+makespace, Grünberger Str. 16, 10243 Berlin (as always)

    See you then!

    Or join our non-physical room (xmpp:berlin-meetup@conference.conversations.im?join)!

    #xmpp #community #xhain #hacking #freesoftware #berlin #meetup #kaidan #dino #sms4you #salutatoi #ejabberd #chat

    • chevron_right

      Some news about Movim

      Timothée Jaussoin · pubsub.movim.eu / Movim · Tuesday, 11 June, 2019 - 16:29 edit

    You may have noticed that there was less updates about Movim the past few weeks. I was indeed a bit busy with other things (jobs, other projects…) but don't worry I'm still working on the upcoming release and maintaining things up.

    Our #ejabberd instance (for movim.eu and jappix.com) was updated to ejabberd 19.05 a few days ago (we also found a little issue in the release related to the #Pubsub module, which was kindly fixed upstream by the ejabberd team).

    A new "share posts to chat contacts" feature was also introduced recently. This will need a bit of polishing but will be part of the upcoming release.

    Posts in the chat, Movim, first XMPP client to do that, it

    I am also renewing our call to help the #Movim project on #Patreon, we lost a few bakers and went again bellow the 50€/month that allows us to cover the servers + domains and few other expenses for the project.

    So if you want to help us, do not hesitate to join our Patreon as well as participating to our little community by doing translations, bug reports (or better, fixes!).

    edhelas