Server deployment
Standalone or Server, ports, volumes and permissions, and how to run DownloadPulse behind an HTTPS reverse proxy with PUBLIC_BASE_URL, FORWARDED_ALLOW_IPS and CORS_ORIGINS.
- Server
On this page
The DownloadPulse server runs in Docker and is used from a browser. This page covers what is specific to running it as a server: the two deployment types, the container’s port and folders, and how to publish it safely through a reverse proxy. For the first installation, see Install on a server.
Standalone or Server
Link to this section: Standalone or ServerThe deployment type decides who can use DownloadPulse as a person.
| Standalone | Server | |
|---|---|---|
| Who signs in | Only the built-in Administrator | Every enabled Admin, User and ReadOnly User, each with their own account and role |
| How | A password alone, set in My Account; without one, no sign-in is required | Username & Password, OpenID Connect, or both, set under Settings › Authentication |
| Settings tabs | Six; Access & Integrations instead of Users & Access, and no Authentication tab | Seven, including Authentication and Users & Access |
| OpenID Connect | Not available | Available |
| Integration accounts and API tokens | Available | Available |
You choose the type in the Setup Wizard’s Deployment Type step on first run. Choosing Server there leads to Administrator Setup, which creates your own Administrator account and turns on Username & Password sign-in. Choosing Standalone asks for no password.
Note: The desktop app is always Standalone and cannot be switched. Only the server has both types.
Switch the deployment type
Link to this section: Switch the deployment typeOnce your Administrator account exists, the type is changed only in Settings.
- Open Settings › Users & Access (on a Server) or Settings › Access & Integrations (on a Standalone installation).
- Find Deployment & Language, the first card. It shows the Current Deployment Type.
- Press Switch to Standalone or Switch to Server.
- Read the confirmation and accept it.
Each switch, in either direction, asks you to confirm first, because it:
- clears the built-in Administrator’s password;
- turns off Username & Password and OpenID Connect sign-in;
- ends every browser session.
Afterwards no sign-in is required: anyone who can reach DownloadPulse at an address it accepts can use it as the built-in Administrator. This is not limited to one computer, and it does not expire. It stays open until you set up sign-in again: in Standalone, set a password from My Account; in Server, turn on sign-in under Settings › Authentication (see Authentication).
Warning: If the server is reachable from networks you do not fully trust, set up sign-in again straight after switching.
What switching keeps:
- No account is deleted. Other people’s accounts keep their usernames, passwords, identity-provider links and saved Enabled or Disabled status. In Standalone they cannot sign in, whatever that status says.
- Returning to Server lets each account sign in again according to its saved status: an account you disabled stays disabled.
- The saved OpenID Connect configuration is kept.
- Integration accounts and their API tokens keep working, and every download request and the account it belongs to stay as they are.
The container listens on port 8095. The listening port is set by your Docker port mapping, not in the application:
ports:
- "8095:8095"To reach DownloadPulse on another host port, change only the left side, for example "8080:8095".
The container’s health check calls http://localhost:8095/api/health. You can use the same address for your own monitoring.
Volumes and files
Link to this section: Volumes and filesThe example compose file maps three folders:
volumes:
- /mnt/user/appdata/downloadpulse/data:/app/data
- /mnt/user/appdata/downloadpulse/config:/app/config
- /mnt/user/downloads:/download
environment:
- PUID=99
- PGID=100
- CONFIG_PATH=/app/config/config.json
- DB_PATH=/app/data/downloadpulse.db
- TZ=Europe/Berlin| Container path | What it holds |
|---|---|
/app/data |
The database (downloadpulse.db), backups, the download engines’ session files and the Usenet engine’s state |
/app/config |
The configuration file config.json and an uploaded notification avatar |
/download |
Your downloads. This is the default Download Folder; see Download location |
Keep /app/data and /app/config on persistent storage: they are your installation. Backups are written to the Backup Folder, which by default is backups next to the database, so /app/data/backups inside the container. A backup holds the database, the configuration and an uploaded avatar. See Data and maintenance.
Warning: The database, and therefore every backup, contains your accounts, including a verifier for each local password, and your stored service credentials. Protect the host folders accordingly.
Users and permissions
Link to this section: Users and permissions| Variable | Default | What it does |
|---|---|---|
PUID, PGID |
99, 100 | The user and group DownloadPulse runs as. Set them to the account that should own the downloaded files. PUID=0 runs it as root on purpose. |
UMASK |
002 |
The permissions of new files. |
CHOWN_DOWNLOADS_RECURSIVE |
false |
At start, /download itself is given to PUID:PGID. Set true to change everything inside it too. |
TZ |
The container’s time zone, for example Europe/Berlin. |
At every start, DownloadPulse gives /app/data and /app/config to PUID:PGID, makes both folders private to that user (mode 700) and config.json readable only by it (mode 600). Only these data, settings and download folders belong to that user; DownloadPulse’s own program files stay owned by the system, so the account it runs as can never change them. If changing ownership fails (on some network shares, for example), DownloadPulse logs a warning and starts anyway, so its storage checks can report the problem.
Addresses DownloadPulse accepts
Link to this section: Addresses DownloadPulse acceptsTo protect you from malicious web pages, DownloadPulse only trusts requests that name the installation’s own address. It accepts:
- its IP addresses and
localhost; - names under
.local,.home.arpa,.internaland.localhost; - the address it is itself listening on;
- the HTTPS address configured as its public base URL (see below).
A bare hostname (such as http://nas:8095), .lan or another DNS name is not trusted, and forwarded host headers are never consulted.
What happens with any other name depends on whether sign-in is on:
- Sign-in off (open mode): every request is refused with
Forbidden authority, so a web page cannot use DNS rebinding to read archive passwords, accounts, settings, backups or downloads. Sign-in, API tokens, the Sonarr and Radarr connections and health checks are unaffected. - Sign-in on: browser changes (saving settings, adding downloads) are refused with
Forbidden authority. While no public base URL is set, the one change still accepted over HTTPS is saving the Public DownloadPulse Base URL itself under Settings › Authentication, from the very address you are using.
If you reach DownloadPulse through a name of your own, set that name as its public base URL.
Reverse proxy and HTTPS
Link to this section: Reverse proxy and HTTPSTo publish DownloadPulse outside your home network, put it behind a reverse proxy that terminates HTTPS, such as Caddy, nginx or Traefik, and turn on sign-in first (see Authentication).
Set PUBLIC_BASE_URL
Link to this section: Set PUBLIC_BASE_URLTell DownloadPulse the exact address people use:
environment:
- PUBLIC_BASE_URL=https://download.example.comUse only an HTTPS origin in scheme://host[:port] form, with no path, query, fragment or credentials. DownloadPulse uses it for:
- checking that browser requests come from its own page;
- deciding that sign-in cookies must be HTTPS-only;
- the OpenID Connect callback,
https://download.example.com/auth/oidc/callback; - the public address of an uploaded notification avatar.
Set it even if you only use Username & Password sign-in.
The same value can be stored in the interface as Public DownloadPulse Base URL, on the OpenID Connect card of Settings › Authentication (part of the Advanced presentation). PUBLIC_BASE_URL takes precedence when both are present, and the field then shows it read-only with Managed by PUBLIC_BASE_URL. A Standalone installation has no Authentication tab, so set the environment variable there.
Setting a public address does not disable direct LAN access: a request to http://192.168.1.10:8095 is still judged by its own address.
What the proxy must do
Link to this section: What the proxy must do- Terminate HTTPS and forward to the container’s port 8095 over plain HTTP.
- Pass the original
Hostheader through unchanged. DownloadPulse recognises a request whose Host matches the public base URL as the HTTPS address, even across an internal HTTP hop. - Not rewrite paths, in particular the OpenID Connect callback path
/auth/oidc/callback.
DownloadPulse does not trust a client-supplied X-Forwarded-Proto header to decide whether a connection is HTTPS. It relies on the public base URL instead.
A minimal Caddy site, with Caddy on the same host and the container published on port 8095, looks like this:
download.example.com {
reverse_proxy 127.0.0.1:8095
}Caddy obtains the certificate and passes the Host header through by default. With nginx or Traefik, make sure the same is true.
Tip: Over plain HTTP on your own LAN, Username & Password sign-in works without any of this. OpenID Connect always needs an HTTPS public base URL.
FORWARDED_ALLOW_IPS
Link to this section: FORWARDED_ALLOW_IPSFailed sign-ins are slowed down per client address. Behind a proxy, every request comes from the proxy, so all users share one budget unless DownloadPulse may read the real client address from the proxy’s forwarded headers.
DownloadPulse’s web server reads the FORWARDED_ALLOW_IPS environment variable for the proxies it trusts. If your proxy runs on another machine or in another container, set it to that proxy’s address or network:
environment:
- FORWARDED_ALLOW_IPS=172.18.0.2Warning: Do not use
*on an interface untrusted clients can reach. If you leave it unset, nothing breaks: users behind the same proxy simply share the sign-in throttle. It never creates a way around sign-in.
CORS_ORIGINS
Link to this section: CORS_ORIGINSCORS_ORIGINS is only for other web applications that must call DownloadPulse’s API from a browser. It is not a substitute for PUBLIC_BASE_URL, and you don’t need it for the DownloadPulse page itself.
DownloadPulse’s CORS always allows credentials, so every origin you list is trusted with a signed-in session. List each one exactly, comma-separated, as scheme://host[:port]:
environment:
- CORS_ORIGINS=https://dashboard.example.com,https://tools.example.comCORS_ORIGINS=* is refused, and DownloadPulse does not start with it, because a wildcard with credentials would trust every website. Leave it unset if you don’t need it.
Sign-in and integrations behind a proxy
Link to this section: Sign-in and integrations behind a proxy- Sonarr, Radarr and other tools use the same address as the browser, with an Integration account’s token. See Sonarr and Radarr and API and tokens.
- When sign-in is on, the Prometheus metrics address
/api/metricsalso needs a credential. See Prometheus. - To bring in sign-in through an identity provider, see OpenID Connect.
Other environment variables
Link to this section: Other environment variables| Variable | What it does |
|---|---|
CONFIG_PATH |
Where config.json is read and written (/app/config/config.json in the examples). |
DB_PATH |
Where the database is kept (/app/data/downloadpulse.db in the examples). The default Backup Folder is next to it. |
PUBLIC_BASE_URL |
The public HTTPS address, as above. |
FORWARDED_ALLOW_IPS |
The reverse proxies trusted to forward client addresses. |
CORS_ORIGINS |
Exact browser origins allowed to call the API. |
Images are published for linux/amd64 and linux/arm64.