Questa pagina non è stata ancora tradotta. Aiuta a tradurre →
Server headless
Docker & NAS
Run the headless FluxDown server from the prebuilt Docker image, with Docker Compose, CasaOS/ZimaOS, Unraid, and native Synology DSM packages.
Modifica questa paginaIn questa pagina
The fastest way to run the headless server is the prebuilt Docker image — no Cargo build, no separate Web UI build step. The image bundles fluxdown-agent (Web UI embedded) and fluxdownd, runs them under tini (the agent starts the daemon as a child and shuts it down on docker stop), exposes everything on one port (17800), and persists its database, logs, and access key to a volume.
Image: ghcr.io/zerx-lab/fluxdown-server (tags: a specific version like 0.1.54, or latest). The image name is unchanged; the entrypoint is now tini -- fluxdown-agent --server.
Prefer a pinned version tag over
latestfor reproducible deployments.
docker run
docker run -d \
--name fluxdown-server \
--restart unless-stopped \
-p 17800:17800 \
-v fluxdown-data:/data \
-v /path/to/downloads:/root/Downloads \
ghcr.io/zerx-lab/fluxdown-server:latest
/dataholds the database, logs, and the access key — keep it on a persistent volume. Upgrading from an older image? Reuse the same volume: the data and access key carry over./root/Downloadsis the container’s default download directory (HOME=/root); bind it to a host path you want files written to.
On first visit to http://<host>:17800/, the Web UI opens an initialization wizard. It asks for a one-time setup code and the access key you want to keep (at least 8 characters, must include both letters and digits). The code is in the data volume at /data/agent/setup-bootstrap (mode 0600); the startup log also prints the path and value once. Read it with docker exec fluxdown-server cat /data/agent/setup-bootstrap. A remote caller cannot set the key without that code. Use the key you choose to sign in to the Web UI and to authenticate the HTTP API, MCP endpoint (Authorization: Bearer <token>) and the /rpc JSON-RPC endpoint.
Before first setup completes, /download, /download/batch, and /jsonrpc (POST/WS upgrade) return HTTP 403 (setup required: set the access key first); aria2 clients and script takeover are unavailable. The Web setup page and GET /api/v1/setup/status remain reachable. Saving a valid key makes compatibility APIs available according to their switches, without restarting.
For docker-compose or other orchestration, you can pre-set the key with FLUXDOWN_TOKEN and skip the wizard (no setup code is created). It only takes effect when the instance has not set a key yet, unless you also set FLUXDOWN_TOKEN_FORCE=1, which makes it override the stored key on every restart (see Environment variables):
docker run -d \
--name fluxdown-server \
--restart unless-stopped \
-p 17800:17800 \
-e FLUXDOWN_TOKEN=replace-with-strong-key-2026 \
-v fluxdown-data:/data \
-v /path/to/downloads:/root/Downloads \
ghcr.io/zerx-lab/fluxdown-server:latest
Docker Compose
services:
fluxdown-server:
image: ghcr.io/zerx-lab/fluxdown-server:latest
container_name: fluxdown-server
restart: unless-stopped
ports:
- "17800:17800"
volumes:
- fluxdown-data:/data
- ./downloads:/root/Downloads
# environment:
# FLUXDOWN_TOKEN: replace-with-strong-key-2026 # optional: preset access key, skips the init wizard
# FLUXDOWN_LANG: zh
# FLUXDOWN_DATABASE_URL: postgres://user:pass@host:5432/fluxdown
volumes:
fluxdown-data:
docker compose up -d
All environment variables from Server Setup apply — most usefully FLUXDOWN_LANG (default Web UI language, en/zh) and FLUXDOWN_DATABASE_URL (point at an external PostgreSQL instead of the bundled SQLite).
CasaOS / ZimaOS
FluxDown is published as a third-party CasaOS / ZimaOS app store, so you can install it with one click.
In CasaOS / ZimaOS: App Store → Sources → Add, then enter:
https://cdn.jsdelivr.net/gh/zerx-lab/casaos-appstore@gh-pages
Then install FluxDown from the store. Store source: zerx-lab/casaos-appstore.
Unraid
An Unraid Community Applications template is available in zerx-lab/unraid-templates. The Web UI is served at http://[SERVER-IP]:17800/.
Synology NAS (native .spk package)
Every Server release ships native DSM packages — no Docker required. Four packages cover both DSM generations and both CPU families:
| Package | DSM version | CPU |
|---|---|---|
FluxDown-Server-<ver>-synology-dsm7-x64.spk |
DSM 7.0 or later | Intel / AMD (x86_64) |
FluxDown-Server-<ver>-synology-dsm7-arm64.spk |
DSM 7.0 or later | ARM64 (rtd1296, rtd1619b, armada37xx, …) |
FluxDown-Server-<ver>-synology-dsm6-x64.spk |
DSM 6.0 – 6.2 | Intel / AMD (x86_64) |
FluxDown-Server-<ver>-synology-dsm6-arm64.spk |
DSM 6.0 – 6.2 | ARM64 |
Not sure which CPU family your model uses? Check the “Package Arch” column for your model in Synology’s CPU list: x86_64 family → x64 package, armv8 family → arm64 package. Older armv7/i686 models are not supported.
Install
- Open Package Center → Settings → General and set Trust Level to Any publisher. This is required because the packages are unsigned: DSM 7 removed third-party package signing entirely — the only “verified” packages are those distributed through Synology’s official Package Center program.
- Package Center → Manual Install, select the
.spk, and follow the wizard. On DSM 7 the wizard asks for a shared folder for downloads (defaultFluxDown): it is created if missing and the package user is granted read/write on every start, so it is ready to use as the save directory right away. - Start the package, then click Open in Package Center — it links straight to the Web UI on port
17800(http://<NAS-IP>:17800).
First-run access key
On first open of the Web UI (http://<NAS-IP>:17800), the initialization wizard asks for a one-time setup code, then for an access key (at least 8 characters, letters and digits). The code is in FluxDown-setup-code.txt in the download shared folder you chose in the install wizard — open it in File Station and paste its content. The file is deleted once setup succeeds (the private original stays at /var/packages/FluxDown/var/agent/setup-bootstrap). If no shared folder was resolved, read that private file over SSH instead. The key is persisted in the package’s database, so it survives restarts and upgrades. You can view or change it later under Settings → API Service.
Permissions and data locations
- On DSM 7 the service runs as the dedicated low-privilege package user
sc-fluxdown(a DSM 7 platform requirement — packages may no longer run as root). On DSM 6 it runs as root. - Database, logs, and the access key live in
/var/packages/FluxDown/var. On DSM 7 downloads default to the shared folder chosen in the install wizard; on DSM 6 they default to the platform download directory. - A package user has no access to any other shared folder by default. If the save-directory picker shows “The server has no permission to read this directory” for
/volume1/<share>(or the folder looks empty), grant it first: Control Panel → Shared Folder → Edit → Permissions, switch the user dropdown to System internal user, and give sc-fluxdown Read/Write. DSM 6 needs no grant (root).
Upgrade and uninstall
Upgrade by manually installing a newer .spk over the existing one — the database, access key, and settings in var are preserved. The package now ships fluxdown-agent + fluxdownd (the start script runs fluxdown-agent --server; the log file is still var/fluxdown-server.log). Uninstalling from Package Center stops the service and removes the package.
fnOS (native .fpk app)
Every Server release ships native fnOS app packages — no Docker required:
| Package | CPU |
|---|---|
FluxDown-Server-<ver>-fnos-x64.fpk |
Intel / AMD (x86) |
FluxDown-Server-<ver>-fnos-arm64.fpk |
ARM64 |
Install
- Open App Center → Manual install, pick the
.fpkfor your CPU, and follow the prompts (manually installed third-party apps are not reviewed by the fnOS App Center). - Start the app, then click the FluxDown desktop icon — it opens the Web UI on port
17800(http://<NAS-IP>:17800) in a new tab. - On first launch, the setup wizard asks for the one-time setup code first. Open
FluxDown-setup-code.txtin thefluxdownshared folder (File Manager) and paste its content, then set your access key (8+ characters, letters and digits). The file is deleted once setup succeeds. You can change the key later under Settings → API Service.
Permissions and data location
- The service runs as the dedicated app user
fluxdown(not root). - Installation creates the shared folder
fluxdownand grants the app read/write access; it is the default save location. - To save into another shared folder, add it under App settings → Authorized directories for FluxDown. Unauthorized folders show “the service process cannot read this directory” in the save-location picker.
- The database, access key, and log (
fluxdown-server.log) live in the app data directory/var/apps/fluxdown/var.
Upgrading
In-app update only announces new versions; it never replaces the binaries. Manually install the newer .fpk from the App Center over the existing install — the database, access key, and settings are kept.
Remote access (DDNS / FN Connect)
FluxDown listens on port 17800 over both IPv4 and IPv6 by default, so fnOS DDNS (which often resolves to IPv6) and FN Connect forwarding both reach http://<domain>:17800 with no reverse proxy or WebSocket pass-through needed. If it is unreachable from the internet:
- Run
ss -ltn | grep 17800on the NAS: it should show*:17800or[::]:17800. Only0.0.0.0:17800means an older version — upgrade the.fpk. - If DDNS resolves to IPv4, forward port
17800to the NAS on your router; this needs a public IPv4 address. - Make sure the modem/router IPv6 inbound firewall and the fnOS firewall allow
17800.
Exposing it safely
The image binds [::]:17800 inside the container (IPv4 + IPv6, falling back to 0.0.0.0 when the container has no IPv6), mapped to the host. As with any headless deployment, the access key is the only thing guarding full remote control — see the reverse proxy & TLS guidance before exposing it beyond a trusted LAN.
Next steps
- Web UI — sign in and manage downloads from a browser.
- API Overview — automate the server from scripts or other tools.