macOS
Use macOS 15 or later on a Mac with an available Secure Enclave. Sign in to the Customer area with your Mango Account passkey and download the Apple Silicon or Intel ZIP for your Mac.
Unzip the download and move Mango Bouncer.app to Applications. Open the app if you want to copy its Terminal commands. Run the following in Terminal and choose a Web Access password when prompted.
bouncer='/Applications/Mango Bouncer.app/Contents/MacOS/mango-bouncer'
"$bouncer" setup --username mango
"$bouncer" serve
Open http://127.0.0.1:8765, sign in with the Web Access credentials you chose, and activate Bouncer. Leave serve running to keep your IRC sessions connected. Press Ctrl+C to stop it.
Ubuntu
Download the Ubuntu 26.04 .deb from the Customer area. Run dpkg --print-architecture if you need to check whether to download amd64 or arm64. In the download folder, substitute your package’s filename for the example below. Run Bouncer as your regular user in a session with an unlocked Secret Service keyring, such as GNOME Keyring.
sudo apt install ./mango-bouncer_3.1.6-BUILD_amd64.deb
mango-bouncer setup --username mango
mango-bouncer serve
Open http://127.0.0.1:8765 and activate Bouncer. For a new headless ARM64 installation, the Raspberry Pi systemd setup starts the keyring with Bouncer. The Docker Compose setup also runs its own keyring.
If you already run an earlier beta, stop it before replacing the app or installing the new package. Update any service you configured to launch mango-bouncer serve. Bouncer keeps using your existing settings directory when it finds one.
Raspberry Pi
Use Ubuntu Server 26.04 LTS for Raspberry Pi (64-bit) and the ARM64 Mango Bouncer .deb. Select the Ubuntu Server image when flashing the Pi in Raspberry Pi Imager. The native package targets Ubuntu 26.04.
| Raspberry Pi models | Compatibility |
|---|---|
| Pi 5 | Tested with Mango Bouncer on Ubuntu Server 26.04 LTS. |
| Pi 4 Model B, Pi 400, Pi 500, Compute Module 4 and 5 | Ubuntu Server 26.04 supports these boards, which meet the package’s ARM64 requirement. |
| Pi 3 Model A+, 3 Model B and 3 Model B+, Compute Module 3+, Zero 2 W | Ubuntu Server supports these boards. Bouncer has yet to be verified on them. |
Use Canonical’s Raspberry Pi guide to check other boards, download the preinstalled server arm64 image, and check the minimum bootloader version for your board. Ubuntu Raspberry Pi support and installation
Install the package and configure Web Access
Run the setup over SSH as the regular Linux user who will run Bouncer. Confirm that dpkg --print-architecture prints arm64. Download the ARM64 package from the Customer area and substitute its filename below. Install the keyring and D-Bus tools alongside it.
sudo apt update
sudo apt install ./mango-bouncer_3.1.6-BUILD_arm64.deb \
dbus-daemon dbus-user-session gnome-keyring libglib2.0-bin openssl
bouncer_dir="$HOME/.local/share/mango-bouncer-service"
install -d -m 700 "$bouncer_dir" "$bouncer_dir/config" "$bouncer_dir/data" "$bouncer_dir/cache"
if [ ! -e "$bouncer_dir/keyring-password" ]; then
(umask 077; openssl rand -hex 32 > "$bouncer_dir/keyring-password")
fi
mango-bouncer setup --config "$bouncer_dir/config/mango-bouncer/web-access.json" \
--username mango
Choose a Web Access password at the prompt. The generated keyring password unlocks Bouncer’s separate Secret Service keyring at startup. To use a LAN address or HTTPS, add the appropriate options from LAN access or HTTPS access to the same setup command.
Run Bouncer with systemd
Create a launcher that starts a private D-Bus session, unlocks the keyring, and runs Bouncer.
cat > "$bouncer_dir/serve" <<'SH'
#!/bin/sh
set -eu
bouncer_dir="$HOME/.local/share/mango-bouncer-service"
export XDG_RUNTIME_DIR="${RUNTIME_DIRECTORY:?Start Bouncer through systemd}"
export XDG_CONFIG_HOME="$bouncer_dir/config"
export XDG_DATA_HOME="$bouncer_dir/data"
export XDG_CACHE_HOME="$bouncer_dir/cache"
DBUS_SESSION_BUS_ADDRESS=$(dbus-daemon --session --fork \
--address="unix:path=$XDG_RUNTIME_DIR/session-bus" --print-address)
export DBUS_SESSION_BUS_ADDRESS
gnome-keyring-daemon --unlock --components=secrets < "$bouncer_dir/keyring-password" >/dev/null
gdbus wait --session --timeout 12 org.freedesktop.secrets
locked=$(gdbus call --session --dest org.freedesktop.secrets \
--object-path /org/freedesktop/secrets/aliases/default \
--method org.freedesktop.DBus.Properties.Get org.freedesktop.Secret.Collection Locked)
if [ "$locked" != '(<false>,)' ]; then
printf '%s\n' 'Mango Bouncer could not unlock its keyring.' >&2
exit 1
fi
exec /usr/bin/mango-bouncer serve --config "$XDG_CONFIG_HOME/mango-bouncer/web-access.json"
SH
chmod 700 "$bouncer_dir/serve"
mkdir -p "$HOME/.config/systemd/user"
Save this unit as ~/.config/systemd/user/mango-bouncer.service.
[Unit]
Description=Mango Bouncer
[Service]
Type=exec
ExecStart=%h/.local/share/mango-bouncer-service/serve
RuntimeDirectory=mango-bouncer
RuntimeDirectoryMode=0700
UMask=0077
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target
Enable the service for your Linux user. Lingering starts the user’s service manager at boot and keeps it running after SSH logout. systemd loginctl
sudo loginctl enable-linger "$(id -un)"
systemctl --user daemon-reload
systemctl --user enable --now mango-bouncer.service
journalctl --user -u mango-bouncer.service -n 50 --no-pager
With the default loopback setup, connect through the SSH tunnel, open http://127.0.0.1:8765, and activate Bouncer. To upgrade the ARM64 package, stop the service with systemctl --user stop mango-bouncer.service, install the new .deb, then start it with systemctl --user start mango-bouncer.service. Keep an encrypted backup of the entire ~/.local/share/mango-bouncer-service directory with access restricted to the people who administer the host. This backup includes the keyring and its unlock password.
Docker Compose
Download the Mango Bouncer Linux .deb for your Docker host from the Customer area and the Docker setup script. Run the script on your Linux Docker host with Docker Engine 28 or later and the Docker Compose v2 plugin installed. On 64-bit Raspberry Pi OS, choose the ARM64 download. Install Docker on Raspberry Pi OS
From the directory where you saved the two downloads, run:
bash install.sh
Or, after downloading the .deb, download and start the installer in one command:
curl -fSLo install-bouncer.sh https://mangoirc.chat/downloads/mango-bouncer/install.sh && bash install-bouncer.sh
The installer checks the package architecture, asks where to keep the project and persistent data, and confirms the Web Access address and port before writing configuration. It fetches the Compose files, creates .env and the keyring password, builds the Ubuntu image, and asks you to create a Web Access password. Open the URL it prints and activate Bouncer.
Run bash install-bouncer.sh --version after the one-line download to check the script version. The installer has its own version and prints it when setup starts.
For an update or to retry an interrupted setup, run the script again with the downloaded package and select the same installation directory. The installer uses the saved data location and keeps the existing Web Access login and keyring. Back up the data directory and the project’s mango-keyring-password together.
Manual Docker Compose setup
Both Compose formats build the same image from the Ubuntu .deb for your Docker host’s architecture.
- Single file — Download
compose.yaml. It includes the build instructions and requires Docker Compose 2.17 or later. - Separate Dockerfile — Download
compose.split.yamlandDockerfile. Save the YAML ascompose.yamlwithDockerfilebeside it. EditDockerfileif you want to customize the image build.
Both formats use BuildKit. Use Docker Engine 28 or later for the loopback port mapping. Docker Compose build options · Docker port publishing
Put the .deb in packages/ beside compose.yaml. Create .env in the same directory and set MANGO_BOUNCER_VERSION to the full version between the underscores in your package filename. Replace BUILD with the timestamp in that filename.
MANGO_BOUNCER_VERSION=3.1.6-BUILD
From the directory containing compose.yaml, generate the keyring secret and build the image. The setup command prompts for a separate Web Access password.
if [ ! -e mango-keyring-password ]; then
(umask 077; openssl rand -hex 32 > mango-keyring-password)
fi
docker compose config --quiet
docker compose build
docker compose run --rm mango setup --username mango \
--bind 0.0.0.0 --public-url http://127.0.0.1:8765
docker compose up -d
docker compose logs --tail=50 mango
Open http://127.0.0.1:8765 on the Docker host, or connect by SSH tunnel and open the same URL on your computer. For HTTPS, substitute your public HTTPS URL in the setup command and keep the default Docker port mapping.
The container listens on 0.0.0.0:8765 internally. The Compose file publishes it at 127.0.0.1:8765 on the host. Back up the mango-data volume and its original mango-keyring-password together. They contain or unlock the settings, keyring, and encrypted chat cache. The Docker image disables server-side image decoding because Docker’s default profile can block Glycin’s nested sandbox.
Replace compose.yaml in the existing project directory to update the template or switch formats. For the split format, download its matching Dockerfile too. When upgrading Bouncer, put the new package in packages/ and update MANGO_BOUNCER_VERSION in .env. Run docker compose up -d --build from the same directory to keep the volume and keyring password.
LAN access
Use direct HTTP on a trusted local network and limit incoming connections with the host firewall. For a first-time native setup, replace 192.168.1.224 with your server’s LAN IP. On macOS, use "$bouncer" in place of mango-bouncer after setting the variable in the macOS instructions.
For browser access, the public URL can use a name that resolves on your LAN, such as http://bigmac:8765 or http://bigmac.local:8765. Use a LAN IP, a .local name, or HTTPS if you also connect with Mango CLI. The Android app requires HTTPS for remote connections.
mango-bouncer setup --username mango \
--bind 0.0.0.0 --public-url http://192.168.1.224:8765
mango-bouncer serve
For Docker, change the host side of the port mapping in compose.yaml and use the same LAN URL in the Docker setup command.
ports:
- "192.168.1.224:8765:8765"
Use the configured LAN URL from every device, including the server itself. Bouncer checks the request’s host and origin against the saved public URL. If you change the direct HTTP port, use the same value for --port, the public URL, and both ports in the Docker mapping when applicable.
HTTPS access
These examples run the reverse proxy on the same host as Bouncer or your Docker host. Use a dedicated hostname, serve Web Access at its root, and point your DNS records to the proxy. Replace mango.example.com throughout with your hostname. Keep the Bouncer listener private and expose HTTPS on the proxy.
For a first-time native setup, use the loopback bind and set the public URL to HTTPS. On macOS, use "$bouncer" in place of mango-bouncer.
mango-bouncer setup --username mango \
--bind 127.0.0.1 --public-url https://mango.example.com
mango-bouncer serve
For Docker, keep --bind 0.0.0.0 inside the container and use --public-url https://mango.example.com in the Docker setup command. Keep 127.0.0.1:8765:8765 as the host port mapping. Both proxies below can then reach Bouncer at 127.0.0.1:8765.
Caddy
Add this site block to your Caddyfile. Caddy preserves the incoming host for this HTTP upstream and handles the WebSocket upgrade. For automatic certificates, ensure that public DNS resolves to the proxy and that ports 80 and 443 are reachable. Caddy automatic HTTPS · Caddy reverse proxy
mango.example.com {
reverse_proxy 127.0.0.1:8765
}
For a running Caddy service that uses /etc/caddy/Caddyfile, validate and reload the configuration.
sudo caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile
sudo caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile
nginx
Get a certificate for your hostname before enabling this configuration. Put the example in a file included from nginx’s http context, such as /etc/nginx/conf.d/mango.conf, and set the paths to your certificate chain and private key. The proxy preserves the original host, upgrades WebSocket requests, and allows request bodies up to Bouncer’s attachment request limit. Getting a Let’s Encrypt certificate · nginx WebSocket proxying
map $http_upgrade $mango_connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name mango.example.com;
return 308 https://mango.example.com$request_uri;
}
server {
listen 443 ssl;
server_name mango.example.com;
ssl_certificate /etc/letsencrypt/live/mango.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mango.example.com/privkey.pem;
client_max_body_size 12m;
location / {
proxy_pass http://127.0.0.1:8765;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $mango_connection_upgrade;
proxy_read_timeout 5m;
}
}
sudo nginx -t && sudo nginx -s reload
Verify the proxy
curl --fail --silent --show-error --output /dev/null https://mango.example.com/
Open https://mango.example.com and sign in. Once you have activated the host and added a network, check that conversations update live. If the request gives you 403 Forbidden, check the saved publicURL and the forwarded Host. If sign-in works but the chat stays disconnected, check that the proxy upgrades /api/socket to WebSocket.
Change a saved address
Stop the native server and edit server.publicURL in web-access.json. If you are switching between a loopback listener and a direct LAN listener, also update server.bindAddress. Keep the existing account fields and restart with serve.
| Installation | Settings file |
|---|---|
| macOS | ~/Library/Application Support/Mango Bouncer/web-access.json |
| Ubuntu | $XDG_CONFIG_HOME/mango-bouncer/web-access.json or ~/.config/mango-bouncer/web-access.json |
| Custom | The file supplied to --config |
If you upgraded from an earlier beta, edit the file in your existing settings directory.
For Docker, stop the service with docker compose stop mango, rerun the Docker setup command with the new URL and your chosen Web Access credentials, then run docker compose up -d. Keep the existing volume and keyring password.
SSH access
With the default loopback setup, open an SSH tunnel from the computer running your browser or Mango CLI. Replace user@server with your login on the Bouncer host.
ssh -N -L 127.0.0.1:8765:127.0.0.1:8765 user@server
While the tunnel is open, use http://127.0.0.1:8765 as the Web Access URL. SSH encrypts the connection between your computer and the host.
Activation
A verified App Store purchase of Mango includes Bouncer. The Web Access password signs you into this server. Your Mango Account passkey approves the host so it can connect to IRC.
- Sign into Web Access with the username and password from setup. Choose Sign in with a passkey and copy the displayed code.
- In the Customer area, sign in with your Mango Account passkey if prompted. Enter the code under Activate Mango, review the host name, and approve it.
- Return to Web Access and add your IRC networks.
The Customer area lists standalone Bouncers under Approved hosts. Deactivate a host there to revoke its Mango Account session or stop a Mac license from renewing. Standalone macOS Bouncer licenses bind to that Mac’s Secure Enclave. Approve the new host when moving to another Mac.
On Linux, Bouncer stores a rotating Mango Account refresh token in the system’s Secret Service keyring. Treat a full backup that includes the unlocked keyring or its password as a copy of the host’s credentials. Approve each Bouncer separately when setting up a second machine or cloning a VM. Running two copies of one session can revoke that session when either copy tries to use a token the other has already rotated.
New Bouncer setups offer Sign in with Mango Account as the primary browser sign-in method after activation. Choose Use username and password to sign in with your Web Access credentials. To change the passkey sign-in preference for an existing Bouncer, sign in with your Web Access password and open Allow sign-in with Mango Account in Settings → Mango Account.
Connect from a terminal
Run Mango CLI on your computer with Bouncer’s Web Access URL, username, and password.
mango-cli https://mango.example.com mango