Connect securely outside your home
Silo is in active development before 1.0. These guides are updated frequently.
Get Silo working on your LAN before opening remote access. This example uses an existing Caddy installation on the same Linux host as Silo, a domain you control, and a router that can forward traffic to that host.
If your connection is behind carrier-grade NAT or you cannot change router rules, port forwarding won’t work. Network access (Beta) can reach the server through Tailscale instead.
Set up HTTPS with Caddy
Section titled “Set up HTTPS with Caddy”- Point your chosen hostname, for example
silo.example.com, at your public address. - Forward inbound TCP ports 80 and 443 to Caddy. Keep PostgreSQL, Redis, metrics, and Silo’s own ports off the public internet.
- Add this site to your existing Caddyfile, replacing the hostname:
silo.example.com { reverse_proxy 127.0.0.1:8090}- Validate and reload Caddy using the procedure for your installation.
- In Admin > Server > General, set Silo public URL to
https://silo.example.com, save, and follow any restart notice. - Under Network on the same page, review Trusted proxies. Trust only the proxy addresses that send requests to Silo.
Caddy gets HTTPS certificates automatically for a hostname that is reachable from the internet. See its reverse-proxy guide for installation details. The example assumes Caddy runs on the host: inside a Caddy container, 127.0.0.1 refers to that container.
If you run nginx, Traefik, or HAProxy instead, use its site from Reverse proxy examples in step 3.
Use a dedicated hostname at its root. A subpath such as example.com/silo needs extra routing this example doesn’t cover.
Test away from home
Section titled “Test away from home”Turn Wi-Fi off on a phone or tablet, then open the HTTPS address. Check sign-in, artwork, playback, seeking, and subtitles.
If pages load but seeking or live updates fail, check that your proxy passes range requests and WebSocket connections. What Silo needs from a proxy lists the rest.
Silo’s TCP tuning for remote viewers covers only connections that end at Silo. Behind Caddy, the viewer’s connection ends at Caddy, so the tuning covers Caddy’s connection to Silo, and the connection to the viewer uses the host’s own TCP settings.
If remote playback is slow over HTTP/3
Section titled “If remote playback is slow over HTTP/3”If viewers away from home buffer while other sites load quickly for them, Caddy may be serving Silo over HTTP/3. Caddy turns HTTP/3 on by default and uses it whenever UDP port 443 reaches it, for example when the port forward or a Docker port mapping includes UDP. With only TCP forwarded, as in the steps above, this doesn’t happen. On a connection that loses a few packets, Caddy’s HTTP/3 can be much slower than TCP, and Test speed in Settings > Playback is slow too.
To stop offering HTTP/3 for Silo, add header Alt-Svc clear to Silo’s site in your Caddyfile, then validate and reload Caddy:
silo.example.com { header Alt-Svc clear reverse_proxy 127.0.0.1:8090}Other sites on the same Caddy keep HTTP/3. Browsers stop using HTTP/3 for Silo once they’ve seen the change, but one that’s still connected over HTTP/3 can keep that connection for a while. Restart the browser before you test playback away from home again.
nginx serves HTTP/3 only where you’ve set it up, and its HTTP/3 can slow down the same way.
Speed up web playback away from home
Section titled “Speed up web playback away from home”When Caddy serves your main address over HTTP/2 or HTTP/3, give the web app a second address that serves Silo over HTTP/1.1 only. Through it, the web app reads a file over several connections at once, which can keep video from stalling on a long or lossy link where one connection is too slow.
This helps only with files the web app decodes itself, such as a file with Dolby TrueHD or DTS audio. Decode in the browser (beta), in Settings > Playback, does that and is on unless you’ve turned it off. To check a title, open the player’s More menu and select Playback info: the Player row shows Browser decoder.
The Silo apps on Apple and Android devices don’t use the media address, and neither do viewers on Network access (Beta).
-
Point a second hostname, for example
media.example.com, at your public address. -
Forward inbound TCP port 8443 to Caddy. Caddy still gets the certificate for the media hostname through port 80 or 443.
-
Add the media site to your Caddyfile, replacing the hostname. Put the global options block in braces at the top of the file, or add the
serverslines to an existing one:{servers :8443 {protocols h1}}media.example.com:8443 {reverse_proxy 127.0.0.1:8090}Caddy applies
protocolsto a whole port, not to one site, so the media address needs its own port. -
Validate and reload Caddy.
-
Using an unscoped API key owned by an administrator, send
PUT /api/v2/admin/settings/server.web_media_urlwithAuthorization: Bearer <key>,Content-Type: application/json,If-Match: *, and the body{"value": "https://media.example.com:8443"}. The value must behttps://, a hostname, and an optional port, with no path; Silo refuses anything else with an error such asserver.web_media_url must use https. It applies from the next video, without a restart. -
Away from home, open your browser’s Network tab and play a title that shows Browser decoder. Seek ahead to an unbuffered part of the video, then look for
206video requests tomedia.example.com:8443over HTTP/1.1; a few requests still go to your main address. Playback alone doesn’t prove it works: if the media address refuses a request or stops answering, the web app falls back to the main address over one connection.
You can also set SILO_WEB_MEDIA_URL in .env and recreate the container; while it’s set, Silo refuses changes through the API. To turn the setting off, send {"value": ""} through the API. If you set SILO_WEB_MEDIA_URL in .env, first remove it and recreate the container: Silo keeps the value it stored and refuses API changes while the variable is set.
If your proxy already serves Silo over HTTP/1.1 only, as the nginx site in Reverse proxy examples does, you don’t need a media address: the web app reads over several connections on the main address. Files a proxy node sends don’t use the media address; the web app reads them from the node itself, over several connections when the node answers over HTTP/1.1.
Other addresses clients use
Section titled “Other addresses clients use”Remote proxy nodes, S3 storage, and the media address each use their own address, not your main Silo address. Make sure each one you use is reachable from viewers’ devices over HTTPS.
Jellyfin-compatible and Audiobookshelf-compatible apps use their own ports (see Docker ports). Publish only the ones your users need, each on its own hostname, and follow third-party access.
At home, the Silo apps on Apple and Android devices switch to the server’s local address on their own once someone is signed in. Browsing, artwork, and video then skip the proxy and go straight to Silo’s own port on your network. While an app is connected this way, the server list under Switch Server shows Connected on your local network below the active server. This needs the address the app signed in with to be HTTPS at the root of its hostname, as set up above.
The Apple apps learn the local address from Silo’s announcement on the local network, or from Local network address under Docker’s default bridge network, which blocks the announcement. The Android apps learn it from Local network address. The apps switch only on Wi-Fi or a wired network, never over mobile data. When the device changes networks or the local address stops answering, the app goes back to the HTTPS address until the local one answers again. Sign-in and subtitles always use the HTTPS address, so that address has to work from inside your home too. On Apple devices, the app may ask for local network access the first time.
Remote access doesn’t make TV discovery work across networks: a phone or tablet finds a TV only on the same LAN.