Skip to content

Remote access & HTTPS ​

In short

The safest way to watch from outside is a VPN such as Tailscale. To publish ReelVault on a domain, put a reverse proxy with HTTPS in front of it, and set four environment variables.

Install Tailscale or WireGuard on your server and on your phone. Your phone reaches ReelVault as if it were at home, and nothing is open to the internet.

If you use Tailscale, add the server's Tailscale address to the allowed origins (see below), so that it can sign you in.

Option 2: a domain with HTTPS ​

Use a reverse proxy, such as Caddy, nginx or Traefik. It receives HTTPS connections and passes them to ReelVault on port 3030.

This example uses Caddy, which gets the HTTPS certificate by itself:

text
# Caddyfile
reelvault.example.com {
    reverse_proxy 127.0.0.1:3030
}

Then set these variables for ReelVault:

bash
APP_PUBLIC_URL=https://reelvault.example.com
APP_ALLOWED_ORIGINS=https://reelvault.example.com
APP_SECURE=true
APP_TRUSTED_PROXY_COUNT=1
VariableWhat it does
APP_PUBLIC_URLThe address people use to reach ReelVault
APP_ALLOWED_ORIGINSExtra addresses allowed to use the API, separated by commas. Your local network and localhost are allowed already
APP_SECURESet to true when people reach ReelVault over HTTPS
APP_TRUSTED_PROXY_COUNTHow many proxies stand in front of ReelVault. Use 1 for one nginx, Caddy or Traefik. The default 0 ignores proxy headers

Only set APP_COOKIE_DOMAIN if your proxy changes the Origin header. Most setups do not need it.

Use HTTPS on the internet

Never publish ReelVault on the internet over plain HTTP. Passwords and sessions would travel unprotected.

Before you open it to the internet ​

  1. Turn on a setup token if the first administrator account does not exist yet. See First-run setup.
  2. Use strong passwords and turn on two-factor authentication for every admin account.
  3. Keep the server updated. See Backups & upgrades.
  4. Keep the login limits. After 10 failed sign-ins on one account (REELVAULT_LOGIN_ACCOUNT_MAX_ATTEMPTS), further attempts are refused for a while. Leave the default unless you have a reason to change it.

Check the network settings ​

By default, the installers listen only on your own computer. The --remote and -Remote options open ReelVault to your network.

The Admin Remote access page
Admin → Remote access

Next steps ​

Released under the GNU GPL v3.