How the connections fit together
Scout’s web UI has its own equivalent path: browser → HTTPS reverse proxy → HTTP Scout on port6556. Using HTTPS for Scout’s UI does not change Scout’s connection to Station; set its Station URL separately.
HTTPS ends at the proxy. Keep the proxy-to-app connection on the same host or a network you trust, and restrict direct access to the app’s HTTP port. If that connection must cross an untrusted network, protect it with an encrypted tunnel or another operator-managed transport.
Three different certificate files
The CA’s private key stays with your certificate authority. Do not upload private keys to Trusted Certificates. The TLS private key is also separate from your Scout key and Station token.
1. Choose an address and certificate
The URL must match a certificate’s Subject Alternative Names (SANs). A certificate for a hostname does not also cover the IP that hostname resolves to. Putting an IP in a DNS SAN is not sufficient, and a legacy Common Name alone is not sufficient. A certificate can contain both DNS and IP SANs. A wildcard such as
*.example.com covers station.example.com, but not station.home.example.com. See Go’s hostname verification rules.
Publicly trusted CAs do not issue certificates for private addresses such as 192.168.1.10 or internal-only names such as station.lan; see the CA/Browser Forum requirements. A private CA can issue certificates for those addresses.
A publicly trusted certificate can still be used for a service that stays inside your LAN: use a domain you own, resolve it to the proxy’s private IP in your local DNS, and obtain the certificate through DNS validation. Let’s Encrypt’s DNS-01 challenge supports services that are not exposed to the public internet. Certificate issuance and renewal remain the responsibility of your proxy or certificate tooling.
For hostnames, make sure DNS resolves to the proxy from both your browser’s device and the Scout container. A hosts-file entry on your laptop does not configure DNS inside Scout. Use a complete IP address such as 192.168.1.10, not just 192.168.
2. Configure your reverse proxy
If your homelab already has a proxy, add an HTTPS site for each app:
Install the site’s server certificate, intermediate chain, and matching private key in the proxy. A missing intermediate can cause trust failures even when the root CA is trusted.
Forward the whole site, including
/api/ and /static/, and preserve the original Host header, cookies, and Authorization header. Serve each app at its own hostname or HTTPS port, at the root path /. The apps do not provide a configurable base path for deployments such as /station/ and /scout/.
Inside a proxy container, localhost means that proxy container. Use the app’s service name on a shared Docker network, or an address the proxy can actually reach. If the proxy is on a different host, allow its connection to the app’s HTTP port while restricting other direct access.
Example: Caddy with your existing certificates
This example adds Caddy to the existing Station Compose project. If ports80 or 443 already belong to your homelab proxy, configure that proxy instead.
Create these folders beside Station’s docker-compose.yml:
station-fullchain.pem, and its matching private key in station-key.pem. Keep the certificate folder out of source control and limit access to the private key.
Add the caddy service and named volumes to your existing Compose file, alongside its current services and volumes:
docker-compose.yml
https/caddy/Caddyfile:
Caddyfile
tls directive loads your existing certificate and key; see Caddy’s TLS reference. The HTTP upstream preserves the request host by default. The short upstream keepalive avoids reusing a connection after the app closes it; see Caddy’s proxy reference.
Remove Station’s ports: ["6555:6555"] mapping, or the equivalent multiline entry, from its service. Caddy can reach station:6555 on the Docker network without that host port. Keep Station’s existing environment, database, and volume configuration, and leave its in-container HTTP_HOST at 0.0.0.0.
Validate the proxy configuration, then start it:
https://station.example.com/. Use port 443 by default; adding https:// to the old HTTP address on port 6555 does not convert that listener to HTTPS.
To serve Scout the same way, repeat this setup in its Compose project, with a certificate for scout.example.com, an upstream of http://scout:6556, and no host mapping for Scout’s HTTP port. If the apps are on different machines, each proxy can use 443 on its own machine. On one machine, an existing shared proxy can route both hostnames, provided it can reach both apps.
For IP-based HTTPS, use https://192.168.1.10 as the Caddy site address and a server certificate with that IP SAN. One IP and port identify one site: to reach both apps using IP URLs, use separate IPs or separately configured HTTPS ports.
3. Trust a private CA where needed
Skip this step for a server certificate that all relevant clients already trust.Browser devices
Install your homelab’s root CA certificate in the trust store used by each device/browser that opens Station or Scout. Some browsers use a separate certificate store. Import it as a trusted certificate authority according to that device’s instructions; see Caddy’s local trust guidance. Uploading the CA into Scout or Station does not configure your browser. Get the browser to accept the certificate normally before signing in or using Station’s browser decryption features; clicking through a certificate error is not a substitute for configuring trust.Scout and Station
If Station uses your private CA, add its root CA to each Scout that connects to it. Under Edit Scout Settings → Trusted Certificates, upload the CA as PEM text with a.crt extension. The UI accepts up to ten certificate files.
Alternatively, place it in Scout’s persisted config folder:
/config/trusted-certs inside Scout. Restart Scout after changing CA files so its Station client uses the updated trust list:
4. Set the HTTPS URLs and secure cookies
In Scout’s.env, set the address of Station’s HTTPS proxy:
.env
STATION_URL environment variable overrides the UI value. Edit or remove that override first. See Scout configuration.
For each app whose web UI is now served over HTTPS, add this to that app’s .env:
.env
Station
Scout
docker compose restart alone does not load a changed .env. Once the secure-cookie setting is enabled, sign in using the HTTPS URL. Ordinary LAN HTTP URLs will no longer carry the sign-in cookie. This setting protects the cookie; it does not start an HTTPS listener or redirect HTTP traffic. See Session cookies over HTTPS.
Optionally set Scout’s Advertised URL to its new HTTPS UI address. This controls the address Scout reports to Station and custom scripts; it does not enable HTTPS or change the Station URL.
5. Verify the whole setup
- Open each UI at its HTTPS address and inspect the certificate: correct name/IP, valid dates, and no trust error.
- Sign in and save a harmless setting to confirm cookies and browser writes work through the proxy.
-
Check Station from inside Scout’s container, using the address you set as its Station URL:
The command uses Scout’s container trust store. Successful browser access alone does not confirm Scout’s DNS, routing, or certificate trust.
- Run a backup cycle for a new or changed job, and confirm a snapshot reaches Station. An unchanged job may skip uploading. Then verify a download or restore through the proxy.
Station currently checks the connection it receives when displaying its plain-HTTP upload warning. With HTTPS terminated at a proxy, that final hop is HTTP, so the warning can still appear even when Scout used HTTPS to reach the proxy. Confirm Scout’s actual Station URL and the proxy’s TLS configuration; the warning cannot distinguish those two hops. The proxy-to-Station hop still needs the protection described above.
http://192.168.1.10 does not provide that. See View and download individual files.
Troubleshooting
For manually loaded Caddy certificates, reload after replacing them:
--force flag reloads the files even when the Caddyfile itself is unchanged; see Caddy’s reload reference. If the CA changes, update trust in the affected apps and browser devices too. If only the server certificate renews under the same trusted CA, clients normally need no new CA upload.