Remote access
Kryspal Media does not relay your traffic and does not terminate HTTPS. To watch away from home, you make the server reachable yourself. This page shows the two usual ways, the settings that matter, and a minimal example for Caddy, Nginx and Nginx Proxy Manager.
On this page
Pick a way#
- A VPN such as Tailscale. Install it on the server's machine and on your devices, then use the server's VPN address with port 5797. Nothing is exposed to the internet. This is the simplest and safest choice.
- A reverse proxy with HTTPS. The proxy listens on 443, holds the certificate and passes requests to the server. Use this when you want a normal web address that works in any player.
Whichever you choose, do not forward port 5797 on your router. It speaks plain HTTP. If you forward a port, forward only the outside-access port, 5798, and put the proxy in front of it.
Network access plugins#
A network access plugin joins the server to another network (a private network or tunnel service) and gives it an address there, so members can watch from outside without you opening a port. Install one from Plugins → Catalog (the catalog can be filtered to network access plugins). Only the plugin knows how its network works; Kryspal Media shows what the plugin reports and does not add any account or relay of its own.
Open System settings → Network:
- Addresses lists the addresses members can use: the local network address (the LAN discovery address), the public domain, and one address for each connected network access plugin. It is a read-only summary of the settings below it and of the plugin cards.
- Each network access plugin is one read-only row: its name, a state dot, its address and a copy button. Click the row to open the plugin's settings. If the dot is amber, something needs doing there.
- Sign-in and approval happen in the plugin's own settings (Plugins → the plugin → Settings). A Connection block at the top shows its state, the plugin's own message, a button and QR code to finish signing in or approving, and the address once connected. It checks every few seconds while it waits to turn green, then less often, and stops while the tab is in the background. Turn a plugin on or off from Plugins, like any other plugin; its detail page lists "Network access": it lets devices outside your local network connect to the server.
- Uninstalling a network access plugin first lets it leave the network it joined, so the server does not stay behind as a stale device there.
- With no network access plugin installed, the page shows one line and a link to the catalog.
Member access: bind people and show the card#
Everything an administrator does for a network access plugin is on its own settings page (Plugins → the plugin → Settings), from top to bottom: Connection, Member access (when the plugin can identify people), then the plugin's own settings and its test button.
In Member access, the Recent visitors list shows the people who recently came through the plugin (kept in memory for 7 days, so it is empty after a server restart until they open the page again). Pick a member in the dropdown next to a person to bind that network user to that member; one network user can be bound to several members (a family sharing one account), and someone already bound to another member is still listed, with who. The next time they arrive through that network, the sign-in page offers one tap to step in as that member; a member who has a PIN still types the PIN. Bound lists "network user → member" and Unbind (after a confirmation) signs out the web sign-ins and devices that came in through that binding right away. Passwords keep working.
Administrators cannot be bound: network accounts often sit on shared devices, and a stolen account would otherwise open the whole server. To watch without typing a password yourself, create a separate viewing member and bind that.
Binding by the member. A member can also bind themselves, without waiting for you: signed in through the network, they open their own settings and tap the card that offers to link the network account they are using. They confirm with their password, or their PIN if they have one, and the binding is marked "bound by themselves" in your list. Administrator accounts always use a password; they cannot be bound by anyone.
When someone is no longer on the network. Every few hours the server asks the plugin whether the bound people are still seen on its network. Someone who is not seen twice, at least six hours apart, is marked "not seen on the network": passwordless sign-in for that binding pauses and the sessions it opened end, but the binding stays and the activity log records it. If they show up again it works again. Press Check now next to Bound to run the check right away; a short note appears only when someone was just marked. Passwords always keep working, and you can unbind a marked person like any other.
Watching from outside: pick a member to see the card that member gets in their own settings (the steps the plugin gives, a QR code and a link the app opens to add the server, no password or token inside), for example to screenshot and send.
Settings that matter#
Ports. The compose file already publishes 5797 (your local network) and 5798 (outside), and sets EXTERNAL_HTTP_ADDR: ":5798". Both ports serve the same server, including the admin console. The difference is how a connection is counted: anything that arrives on 5798 counts as outside your network. Point your proxy at 5798.
Trusted proxies. Add the proxy's address to the server so it can see who is really connecting. In the compose file, under the server's environment:
environment:
EXTERNAL_HTTP_ADDR: ":5798"
TRUSTED_PROXIES: "192.168.1.5"
The value is a comma-separated list of addresses or networks (for example 172.18.0.0/16 for a Docker network). The server will not start if an item is not valid. Without it, every request seems to come from the proxy, so sign-in attempt limits count all your viewers as one client, and if the proxy sits on a private address, people outside can be treated as being on your local network.
Public access URL. In System settings → Network, enter the address your players use from outside, for example https://media.example.com:8443. A path is allowed (https://example.com/media). It must be a full http:// or https:// address, without a user name, query or fragment; a trailing slash is removed. When it is set, the server uses it whenever it gives an outside connection a full address: the playback links handed to external players, copied play addresses and playlists, and the server address that Emby- and Jellyfin-style players are told. Connections from your local network keep using the local address. It saves you from depending on the proxy's headers, and it matters most when you use a port other than 443, because many proxies drop the port from Host. Set it, even if the proxy also sends the headers below.
For the Kryspal apps. When an app switches to your local network, and when it verifies the license, the server must have the address it is reached at saved in settings. Put a domain behind a reverse proxy in Public access URL, and a LAN IP (for example when the server runs in a container network) in LAN discovery address. If an address is refused, the Overview shows a card with that address and a link to the field.
Where the proxy runs. If the proxy is on the same machine as the server, or on the same private network (a home network, a Docker network, a VPN), you do not need to set anything for the apps: the server already trusts the X-Forwarded-Host and X-Forwarded-Proto headers from there. If the proxy is on another machine on the public internet, add its address to TRUSTED_PROXIES and set Public access URL to the address people actually use. Otherwise the server ignores X-Forwarded-Host and refuses to sign for the app, and the Overview shows "App check failed: proxy address not passed".
Headers the proxy must send.
Hostas the visitor typed it. Changes made from the web (saving settings and so on) are refused with a 403 if theOriginandHostdiffer.X-Forwarded-HostandX-Forwarded-Proto. The server uses them to build the stream addresses it gives to external players such as Infuse when no public access URL is set. Without both, players get an internal address likehttp://server:5797/...that cannot be reached from outside.
WebSocket. Players keep a WebSocket open. The proxy must pass the Upgrade and Connection headers, and its read timeout must be at least 60 seconds (the server pings every 30).
Streaming and large files. Do not buffer or cache responses, and allow Range requests so players can seek. Set long read and send timeouts, so a long film is not cut off. The server already asks Nginx-family proxies not to buffer. If you upload artwork in the admin console, the proxy must accept bodies of at least 20 MiB (Nginx's default of 1 MiB does not).
HTTPS. The proxy holds the certificate. When the server sees X-Forwarded-Proto: https, it marks its sign-in cookie as secure automatically.
Treating your VPN as local. Devices that connect over a VPN are counted as outside by default. To count a VPN range as your local network, add LAN_RANGES with that range, for example LAN_RANGES: "100.64.0.0/10" for Tailscale.
Minimal examples#
Replace media.example.com with your own name and 192.168.1.10 with the server's address.
Caddy#
Caddy sends Host, X-Forwarded-Host and X-Forwarded-Proto by itself, passes WebSocket, does not buffer streams and gets the certificate automatically.
media.example.com {
reverse_proxy 192.168.1.10:5798
}
Nginx#
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name media.example.com;
ssl_certificate /etc/ssl/media.example.com.pem;
ssl_certificate_key /etc/ssl/media.example.com.key;
client_max_body_size 50m;
location / {
proxy_pass http://192.168.1.10:5798;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
}
Nginx Proxy Manager#
- Proxy Hosts → Add Proxy Host. Domain name
media.example.com, schemehttp, forward host192.168.1.10, port5798. Turn on Websockets Support. - SSL tab: request a certificate, turn on Force SSL.
- Advanced tab, custom configuration:
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
client_max_body_size 50m;
NPM sends the forwarded headers itself. Use the address of the NPM container or machine for TRUSTED_PROXIES.
Check it works#
- Open
https://media.example.comfrom outside your network and sign in. - Play a file in the web player, then add the same address (port 443) to your player; if you set the public access URL, check that the playback links use it.
If something fails#
- Saving in the admin console fails with a 403. The proxy changes the
Hostheader. Pass it through unchanged. If the proxy cannot (for example a common Emby 302 proxy), add its address to Allowed web origins under System settings → Network, one per line. - Players are given an address that does not work. The proxy is not sending
X-Forwarded-HostandX-Forwarded-Proto. - Everything counts as local network, or one failed sign-in locks out others. Add the proxy to
TRUSTED_PROXIES. - Playback stops after some minutes, or the live view does not update. Raise the proxy's read timeout and turn buffering off.
The admin console is reachable through the same address. Use a strong administrator password, or limit access to the console at the proxy if you do not need it from outside. For more on logs and what to include in a report, see Logs and reporting problems.