Self-hostingPlatforms
Synology
Short version
Section titled "Short version"A Synology NAS with an x86-64 or ARM64 processor and DSM 7.2 or later with Container Manager, 2 GB of memory at least and 4 GB for a busy instance, and a domain. Create a project from compose.yaml and fluxer.env, and add a reverse proxy rule in DSM.
It takes about 20 minutes.
What this changes
Section titled "What this changes"- One Container Manager project called
fluxer, with one container and one Docker volume calledfluxer-datafor the data. - A folder such as
/volume1/docker/fluxerwithcompose.yamlandfluxer.env. - A reverse proxy rule in DSM for your domain, to port 8080 on the NAS, and a Let's Encrypt certificate for the domain in DSM.
- Ports 7881 on TCP and 7882 on UDP for voice.
- Port forwards on your router for ports 80, 443, 7881 and 7882 to the NAS.
Before you start
Section titled "Before you start"- Check the requirements. Container Manager runs only on x86-64 and ARM64 models. Fluxer runs on a 2 GB model for a few people and has more room with 4 GB.
- DSM uses ports 80 and 443, so Fluxer runs in proxy mode behind it.
- A domain or subdomain for Fluxer, and a way for people outside your home to connect to the NAS. Behind CGNAT, use Cloudflare Tunnel or Tailscale instead.
- A Btrfs or ext4 volume works for the data.
Install
Section titled "Install"-
Download
compose.yamlandfluxer.envfrom the latest release to your computer. Then set your domain and proxy mode influxer.env.fluxer.env FLUXER_DOMAIN= chat.example.com FLUXER_EDGE_ MODE= proxy FLUXER_UPGRADE_ Container Manager, set the image tag in the project's compose.COMMAND= In yaml to {version} and choose BuildFLUXER_UPGRADE_COMMANDis the step the admin panel shows for an upgrade.In
compose.yaml, replace the five lines underportswith these three.compose.yaml services:fluxer:ports:- "127.0.0.1:8080:8080"- "7881:7881"- "7882:7882/udp" The
portslist incompose.yamlhas127.0.0.1:8080:8080. -
In File Station, make the folder
docker/fluxerand upload both files to it. -
In Container Manager, create a project called
fluxerwith thedocker/fluxerfolder and the existingcompose.yaml. Skip the web portal settings and finish.The first start pulls the image and takes a few minutes, then the project runs.
-
Open the NAS to the internet and get a certificate for your domain.
Control Panel, Security, Certificate then shows a valid certificate for your domain.
-
In Control Panel, open Login Portal, Advanced, Reverse Proxy, and create a rule. The source is HTTPS, your domain and port 443. The destination is HTTP,
localhostand port 8080. Under Custom Header, add WebSocket. Then, under Control Panel, Security, Certificate, choose Settings and pick your domain's certificate for this rule.The Fluxer setup wizard opens at
https://chat.example.com. -
Print the setup token. In Container Manager, open Container, select the
fluxer-fluxer-1container, open Action, Open terminal, and create a terminal withbash, then runfluxerd setup-token.Over SSH, which you turn on under Control Panel, Terminal and SNMP, run this.
sudo docker exec fluxer-fluxer-1 fluxerd setup-tokenPaste the token and create the first admin account. The wizard asks whether people sign in with a username or an email address, and this can't change later.
-
Invite people with an invite link.
Open the NAS to the internet
Section titled "Open the NAS to the internet"- Give the NAS a fixed address on your network, either in DSM under Control Panel, Network, Network Interface, or with a DHCP reservation on your home router.
- On your router, forward TCP ports 80 and 443 and TCP port 7881 and UDP port 7882 to the NAS. DSM needs port 80 for Let's Encrypt, and its reverse proxy serves port 443.
- If your home's public address changes, set up a free
synology.mename under Control Panel, External Access, DDNS, and point your domain at it with aCNAMErecord. With a fixed address, use anArecord. - Get the certificate under Control Panel, Security, Certificate. Choose Add, then "Add a new certificate", then "Get a certificate from Let's Encrypt", and enter your domain.
If the address your router shows on its own status page differs from the one ifconfig.me shows, your provider uses CGNAT and forwarding can't work. Use Cloudflare Tunnel or Tailscale instead.
On your home network without a domain
Section titled "On your home network without a domain"Fluxer can also run on the NAS's own address, such as 192.168.1.20, and sign its own certificate. Devices on your home network can then open it, and nobody outside can. DSM keeps ports 80 and 443, so Fluxer uses 8080 and 8443.
FLUXER_ DOMAIN= 192.168.1.20FLUXER_ PUBLIC_ PORT= 8443Leave out FLUXER_EDGE_MODE. In compose.yaml, replace the five lines under ports with the four lines below, which move the web ports to 8080 and 8443.
services: fluxer: ports: - "8080:80" - "8443:443" - "7881:7881" - "7882:7882/ udp"Open https://192.168.1.20:8443 with your own address. Browsers show a certificate warning until you install Fluxer's root certificate on each device. Each device can download the certificate file from http://192.168.1.20: with any browser.
Upgrade and back up
Section titled "Upgrade and back up"To upgrade, change the tag on the image line of the project's compose.yaml to the new version, and choose Build in the project.
To back up, create a shared folder called backups under Control Panel, Shared Folder, and run this over SSH. The archive is written as root.
sudo docker exec fluxer-fluxer-1 fluxerd backup --out - | sudo tee /volume1/ backups/ fluxer-backup.tar.zst > /dev/ nullCopy the archive to another machine with Hyper Backup or another tool.