<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://njump.me</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://njump.me/npub1s8zsxxkm0ahelx9pr35sdn8ucl8fjmy4tcstw3u2rw20nhvqc7lqgscvr7.rss" />
  <link href="https://njump.me/npub1s8zsxxkm0ahelx9pr35sdn8ucl8fjmy4tcstw3u2rw20nhvqc7lqgscvr7" />
  <id>https://njump.me/npub1s8zsxxkm0ahelx9pr35sdn8ucl8fjmy4tcstw3u2rw20nhvqc7lqgscvr7</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://njump.me/nevent1qqsgwqjtq50my63fksvwu24jjehk85wt4qgrnw2d8h6gsqlt3yk8srqzyzqu2qc6mdlkl8uc5ywxjpkvlnruaxtvj40zpd683gdef7wasrrmuwpz3dq</id>
    
      <title type="html">MollySocket Air-Gap Configuration with Docker Compose In the ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgwqjtq50my63fksvwu24jjehk85wt4qgrnw2d8h6gsqlt3yk8srqzyzqu2qc6mdlkl8uc5ywxjpkvlnruaxtvj40zpd683gdef7wasrrmuwpz3dq" />
    <content type="html">
      MollySocket Air-Gap Configuration with Docker Compose&lt;br/&gt;&lt;br/&gt;In the previous post I talked about the reasons behind why I decided to set up my own private and air-gaped MollySocket Unified Push Gateway for Molly, a fork of the Signal messaging app. The official documentation is a bit difficult to read and also offers no details on how to host MollySocket with Docker Compose. So I worked on this with an LLM a bit and here’s a straight forward version of how to install MollySocket with Docker Compose:&lt;br/&gt;Preconditions&lt;br/&gt;The following setup requires the SunUp Unified Push app on Android that talks to Mozilla’s push service. Conversations and a Prosody XMPP server is another Unified Push setup for Android, but it doesn’t work with MollySocket’s air-gap configuration. This is because the Unified Push configuration by default changes once a day. Conversations can tell Molly about this, but Molly has no way to forward the changes to MollySocket in air gap mode. That’s not a bug, that’s part of being air gaped. See my previous post on what air gaped means in this context. Long story short: Air gaped = only works with a static unified Unified Push configuration used by the Sunup app on Android and Mozilla but not with Conversations as Unified Push frontend.&lt;br/&gt;So let’s go:&lt;br/&gt;Step 1 – The directory for the Docker Compose Project&lt;br/&gt;Create the directory for the docker compose project and subsequently a directory in it for MollySocket’s data directory for things that must persist over restarts:&lt;br/&gt;mkdir -p ~/mollysocket/mollysocket-data&lt;br/&gt;cd ~/mollysocket&lt;br/&gt;chmod 700 mollysocket-data&lt;br/&gt;Step 2 – Generate the VAPID Key&lt;br/&gt;One parameter that is required for the docker compose file below is a unique ID for this MollySocket instance. Create it with:&lt;br/&gt;docker run --rm -v &amp;#34;$PWD/mollysocket-data:/data&amp;#34; -w /data \&lt;br/&gt;ghcr.io/mollyim/mollysocket:1 vapid gen&lt;br/&gt;Step 3 – Create the Docker Compose File&lt;br/&gt;Here’s how the docker-compose.yml file looks like. Put the key generated in step 2 into the MOLLY_VAPID_PRIVKEY parameter:&lt;br/&gt;services:&lt;br/&gt;mollysocket:&lt;br/&gt;image: ghcr.io/mollyim/mollysocket:1&lt;br/&gt;container_name: mollysocket&lt;br/&gt;restart: unless-stopped&lt;br/&gt;working_dir: /data&lt;br/&gt;command: server&lt;br/&gt;volumes:&lt;br/&gt;- ./mollysocket-data:/data&lt;br/&gt;environment:&lt;br/&gt;- MOLLY_WEBSERVER=false&lt;br/&gt;- MOLLY_VAPID_PRIVKEY=THE-KEY-GENERATED-ABOVE&lt;br/&gt;- MOLLY_DB=/data/mollysocket.db&lt;br/&gt;# no spaces inside the JSON arrays&lt;br/&gt;- MOLLY_ALLOWED_UUIDS=[&amp;#34;*&amp;#34;]&lt;br/&gt;- MOLLY_ALLOWED_ENDPOINTS=[&amp;#34;&lt;a href=&#34;https://updates.push.services.mozilla.com&amp;#34&#34;&gt;https://updates.push.services.mozilla.com&amp;#34&lt;/a&gt;;]&lt;br/&gt;- RUST_LOG=debug&lt;br/&gt;And that’s all! After a docker compose up, MollySocket is running. Don’t put ‘-d‘ at the end of the command yet, because seeing the log output is required for the next step. If things are working, MollySocket shows a 2D bardode on the shell in the log output that would normally be shown on MollySocket’s web interface.&lt;br/&gt;Step 4 – Sunup on Android&lt;br/&gt;Install the SunUp app on Android and, if you haven’t already done so already, Molly.&lt;br/&gt;In Molly, go to the settings, select ‘notifications’ and set it to Unified Push. This will trigger the camera to scan the barcode.&lt;br/&gt;Scan the barcode that is presented in the Molly log on the shell. Note: Most shells have a black background, which prevents Molly from decoding the barcode. Change to a ‘white’ shell for a moment so the barcode shows up correctly with black blocks in front of a white background.&lt;br/&gt;Step 5 – Getting Molly’s parameters to MollySocket&lt;br/&gt;Molly would now send its configuration to MollySocket. However, since we are running in air-gaped mode, it can’t do this. So grab the connection parameters via the ‘get connection details’ menu entry, get it to your PC and then configure MollySocket on the shell with the following command:&lt;br/&gt;docker compose exec mollysocket mollysocket connection add \&lt;br/&gt;xxxxxx...... \&lt;br/&gt;2 \&lt;br/&gt;&amp;#39;xxxx.............&amp;#39; \&lt;br/&gt;&amp;#39;&lt;a href=&#34;https://updates.push.services.mozilla.com/wpush/v2/xxxxxxxxxxxxxxxxxxxxxxxxd.....&amp;#39&#34;&gt;https://updates.push.services.mozilla.com/wpush/v2/xxxxxxxxxxxxxxxxxxxxxxxxd.....&amp;#39&lt;/a&gt;;&lt;br/&gt;There are 4 parameters in total, the last one being the the Mozilla URL. The last two can contain special characters, so they need to be between quotes.&lt;br/&gt;Step 6 – Verify&lt;br/&gt;If the command above has succeeded, MollySocket will send a test push message via the Mozilla Push Service to SumUp on the Android device which in turn will forward it to Molly. Molly will then show a notification that a test message has been received. Once that is shown, things are up and running.&lt;br/&gt;Finally, stop MollySocket and restart it. I’m not sure why that is necessary, but I only got ‘real’ push messages when I sent messages to my Signal account from another device once I did that.&lt;br/&gt;Final Words&lt;br/&gt;OK, the configuration is not a no-brainer, but it is also not rocket science.&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://blog.wirelessmoves.com/2026/11/mollysocket-air-gap-configuration-with-docker-compose.html&#34;&gt;https://blog.wirelessmoves.com/2026/11/mollysocket-air-gap-configuration-with-docker-compose.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#dockercompose #unifiedpush #mollysocket #step #pushgateway #sunupunified #vapid #air #conversations #file&lt;br/&gt;&lt;br/&gt;#rss #feeds #linksharing #qwibbit
    </content>
    <updated>2026-11-06T14:40:36Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0mv926qlvt4mdh4j8ew6upvjtm7sg8qfzcmhpz8awasuy0c48szczyzqu2qc6mdlkl8uc5ywxjpkvlnruaxtvj40zpd683gdef7wasrrmutarv9s</id>
    
      <title type="html">MollySocket For Using Signal on GrapheneOS without Google OK, a ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0mv926qlvt4mdh4j8ew6upvjtm7sg8qfzcmhpz8awasuy0c48szczyzqu2qc6mdlkl8uc5ywxjpkvlnruaxtvj40zpd683gdef7wasrrmutarv9s" />
    <content type="html">
      MollySocket For Using Signal on GrapheneOS without Google&lt;br/&gt;&lt;br/&gt;OK, a bit of a cryptic headline, I admit, so here’s the full story: I use my Pixel 8 with GrapheneOS without any kind of Google infrastructure interaction. That limits the use of the ‘original’ Signal Messenger to Websocket notification for incoming messages. I don’t like that much, as this is quite battery intensive and keeps the cellular radio in active state for most of the time. Fortunately, there is a fork of the Signal messenger app called ‘Molly‘, which can use the UnifiedPush protocol as an alternative way to notify incoming messages to the app. In practice, this method of push delivery requires a proxy in the notification chain, as the Signal infrastructure does not natively support UnifiedPush. These proxies are called ‘MollySocket‘, and there are quite a number of public instances available. Unfortunately, all proxies I tried suffer from delay and reliability issues. I guess this is due to their popularity. But one can also host a private instance at home and this fortunately makes the use of UnifiedPush for Signal/Molly rock steady.&lt;br/&gt;Let’s Air-Gap&lt;br/&gt;Private MollySocket instances can be run in ‘air-gaped’ mode. This means that the instance does not expose a web front end which is otherwise used by devices to connect and configure the MollySocket proxy. Instead, parameters have to be exchanged offline via the shell. The barcode, which is otherwise found on the web interface is printed in the log output of MollySocket and can be scanned with the phone from the shell. In return, the parameters Molly gives to the MollySocket have to be copied to the clipboard and then used in a shell command to register the device with the MollySocket. This is the only way to sign up, so this instance of MollySocket can remain private.&lt;br/&gt;A NAT is not a Problem&lt;br/&gt;Another interesting feature is that the air-gaped MollySocket instance can run behind a NAT, as it only establishes outgoing connections. One outgoing connection is made to a Signal server to receive push notifications for incoming messages for the Molly client(s) it represents. When a push notification is received, the proxy forwards the notification via another outgoing connection via a Unified Push provider to Molly. Very nifty, both connections are outgoing, there is no open port and no incoming connection request to the proxy.&lt;br/&gt;The Documentation on Github is…&lt;br/&gt;When I had a look at the documentation of MollySocket on Github, I was a bit discouraged, as it looks very complicated. Also, only a docker image is referenced, documentation for a docker compose setup is missing. So I used an LLM to generate easier step by step instructions for what was available to get going with a docker compose setup. I would have had MollySocket up and running in 5 minutes with this, but decided to read the instructions carefully and understand what I was actually doing, so it took me 15 minutes. Still, not much effort for getting reliable push notifications for my devices with Molly on it.&lt;br/&gt;In the next post, I’ll document my setup process in case you want to self host a MollySocket instance and also want to do that with a docker compose setup.&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://blog.wirelessmoves.com/2026/11/mollysocket-for-using-signal-on-grapheneos-without-google.html&#34;&gt;https://blog.wirelessmoves.com/2026/11/mollysocket-for-using-signal-on-grapheneos-without-google.html&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#usingsignal #mollysocket #signalmessenger #google #push #private #documentation #unifiedpush #nat&lt;br/&gt;&lt;br/&gt;#rss #feeds #linksharing #qwibbit
    </content>
    <updated>2026-11-05T23:13:35Z</updated>
  </entry>

</feed>