Sign-in
Freetvarr opens with no password. Anyone who can reach its port can watch, record, and change its settings, including its TVHeadend login. To ask for a password, turn on sign-in. Everyone in the household shares one password; there are no user accounts.
Sign-in does not make it safe to forward a port on your router to Freetvarr. To reach Freetvarr away from home, use Tailscale. Sign-in asks for a password on the devices that can already reach Freetvarr, such as a guest's phone on your Wi-Fi.
Turn on sign-in
- Open Settings → SYSTEM → Sign-in.
- Turn on Ask for a password.
- Type a password of at least 8 characters in Password.
- Type it again in Confirm password.
- Press Save password.
To change the password later, type the new one in New password and again in Confirm new password, then press Change password. Freetvarr then asks for the current password. It also asks for the current password before it turns sign-in off, makes an API key, or changes the sign-in proxy. An app that uses the API key cannot change any of these.
The browser that you used stays signed in. Every other browser, and every Home Screen app, shows the sign-in page once. A device then stays signed in for 180 days after its last visit.
A Home Screen app keeps its own sign-in, separate from Safari. Sign in once inside the app.
What stays open
These addresses work with no sign-in, because the devices that use them cannot sign in:
| Address | Used by |
|---|---|
/healthz | The Docker health check |
/guide/xmltv.xml | TVHeadend, which reads the merged guide |
| The video of a playing stream | An Apple TV that plays a stream with AirPlay |
| The sign-in page, icons, styles, and app files | The sign-in page itself, and the Home Screen icon |
Each playing stream has its own random address, which stops working within a minute after the stream ends. The app files are the same as the public source code.
Sign out
- Sign out other devices in Settings → SYSTEM → Sign-in signs out every device except the one you use. Press it after you change the password, or when a device is lost.
- Sign out removes the sign-in from the device you use only. A device that is lost, or a browser that has a copy of its sign-in, stays signed in until you press Sign out other devices or change the password.
Sign-in proxy
A proxy that already signs people in can tell Freetvarr who they are, so they skip the password. Pick the proxy in Settings → SYSTEM → Sign-in → Trust the sign-in of:
| Choice | Header that Freetvarr reads | Sent by |
|---|---|---|
| Tailscale | Tailscale-User-Login | Tailscale Serve, including the HTTPS name container |
| Remote-User | Remote-User | A forward-auth proxy such as Authelia or Authentik |
Freetvarr reads the header only on requests that come from the computer that runs Freetvarr, or from an address in FREETVARR_TRUSTED_PROXIES (Configuration). A request from anywhere else must use the password, even when it carries the header.
With Tailscale, a request from a person on your tailnet skips the password, and so does a request from a person you shared the device with. Tailscale Serve removes a Tailscale-User-Login header that a device sends itself, and sends no header for a tagged device (a device that belongs to a tag, not to a person), such as an Apple TV set up with a tag. Tailscale's documentation says that Funnel traffic carries no identity header, but it does not say that Funnel removes one that a browser sends. Do not turn on Funnel for Freetvarr while Tailscale is the sign-in proxy.
WARNING
Pick a proxy only when that proxy is the only way into Freetvarr's port. Another proxy on the same computer, such as cloudflared, the DSM reverse proxy, or Caddy, passes on a Tailscale-User-Login or Remote-User header that a browser sends. That browser then skips the password. Any other program on the computer can also send the header. A forward-auth proxy must replace any Remote-User header that a browser sends.
Cloudflare Access is not on the list. Its email header is safe only after Freetvarr checks the signed token that comes with it. Put the password behind Cloudflare Access instead (Away from home).
API key
An app that cannot show the sign-in page, such as a future Freetvarr app for TVs, uses an API key:
- Press Make an API key in Settings → SYSTEM → Sign-in.
- Type the current password, then press Make an API key.
- Press Copy, then paste the key into the app.
Freetvarr shows a key only once. It keeps only a fingerprint of it, so it cannot show the key again. Make a new key replaces the old key, which stops working at once. The app sends the key in the header Authorization: Bearer <key>.
Forgotten password
Turn sign-in off on the computer that runs Freetvarr. Use one of these:
- Keep the password. Add the line
FREETVARR_LOGIN=offto the.envfile next todocker-compose.yml, then rundocker compose up -d freetvarr. Freetvarr opens with no password. Set a new password in Settings → SYSTEM → Sign-in, remove the line, and rundocker compose up -d freetvarragain. - Delete the password. Run
docker exec freetvarr rm /config/login, then rundocker restart freetvarr. This also deletes the API key and the sign-in proxy choice.
Turn off sign-in
Turn off Ask for a password in Settings → SYSTEM → Sign-in. Type the current password, then press Turn off sign-in. Freetvarr deletes the password, the API key, and the sign-in proxy choice.
Reset keeps the password. Freetvarr stores it as a scrypt hash in the file login in its config folder, not in the database.