Domains and HTTPS
Silo needs two names: public_url, where people open the console, and content.host, where what Bots make is served. They are under Admin → Settings → Tunnels & apps and HTTPS.
The content domain
Section titled “The content domain”Everything a Bot makes for a browser is served under content.host, never on the console’s own origin, by subdomain:
tunnel-<name>.<content.host>: a tunnel to a web service on a Bot’s machine (a dev server, a dashboard, a notebook). A private tunnel opens for the people on the Bot, signed in to Silo; a public one for anyone with the link. They are made on the Bot’s Tunnels tab, or by the Bot (making one public asks a manager first).app-<name>.<content.host>: a live app, an HTML file or folder the Bot handed over as an artifact, in a sandboxed frame.share-<name>.<content.host>: a public link made from an artifact card, served from a copy on the control plane, so it works while the Bot is stopped.
content: host: silo-content.example.com # scheme: https # default: public_url's
tunnels: # enabled: true- In development, with
public_urlonlocalhostor127.0.0.1,content.hostdefaults tolocalhost:<port of http_addr>(http://tunnel-quiet-amber-heron.localhost:8080). Browsers send*.localhostto this machine, so no DNS is needed. - Anywhere else, set it. Without it there are no tunnels, live apps or public links: the Tunnels tab says so, the Bot has no tunnel tools, and HTML artifacts are download-only.
- Use a domain of its own, not a subdomain of the console’s (
silo-content.example.com, notcontent.silo.example.com). A page a Bot serves could otherwise set cookies the console reads. Acontent.hostequal topublic_url’s host is refused. If both have to share a registrable domain, turn onauth.host_cookie. - DNS and TLS: a wildcard record
*.<content.host>pointing at the control plane, and a certificate for it (a wildcard, or certificates on demand). A proxy in front must pass WebSocket upgrades and the originalHostheader. Caddy, below, can do all of it. - Changing it takes effect on the next request and moves every tunnel, app and link at once. Sign-ins to private tunnels belong to the old host, so people sign in again.
- Private means signed in to Silo. Access to a private tunnel or app is tied to the visitor’s Silo session: signing out ends it at once.
- Ports 5900 (the desktop) and 9222 (Chromium’s debugging port) are never tunnelled, and a Bot has at most 20 tunnels. A tunnel request never starts a stopped Bot.
| Key | Default | What it does |
|---|---|---|
content.host |
derived in development, else none | The suffix, host[:port]: no scheme, path or wildcard. |
content.scheme |
public_url’s |
http or https for the links. Set it when TLS ends at a proxy and public_url is an internal address. |
tunnels.enabled |
true |
Off removes the proxy, the Bot’s tunnel tools and the add form. Tunnels already made are kept. |
HTTPS through Caddy
Section titled “HTTPS through Caddy”With caddy.admin set, the control plane configures a Caddy server itself, through Caddy’s admin API, and gives the whole configuration again whenever Caddy’s differs (checked every 15 seconds). SiloOS sets all of this up.
public_url’s name is served on port 443 and proxied to the control plane.*.<content.host>is served under the same issuer: one wildcard certificate through a DNS provider or Caddy’s own authority, or with Let’s Encrypt over port 80, a certificate per name made on demand. Before making one, Caddy asks the control plane, which says yes only forpublic_url’s name and for a tunnel, app or link that exists, so nobody can have Caddy request certificates for names at will.- While Caddy’s own authority certifies anything, its root certificate is offered for download on the HTTPS page, to install on the devices that open Silo.
caddy: admin: unix//run/caddy/admin.sock # mode: auto # email: [email protected] # dns_provider: cloudflare # dns: # cloudflare: # api_token: "…"auth: trusted_proxies: 127.0.0.1Start Caddy with caddy run --resume and its admin API on a socket only the control plane can reach (CADDY_ADMIN=unix//…), and add Caddy’s address to auth.trusted_proxies. When Caddy is a container of its own, set caddy.upstream to the control plane’s address as Caddy reaches it (silo:8080), and put Caddy’s address, not a network, in trusted_proxies.
DNS providers are compiled into silo-caddy, the Caddy image Silo publishes beside its others; the official Caddy image has none.
| Key | Default | What it does |
|---|---|---|
caddy.admin |
none | Caddy’s admin API: unix//path/to/admin.sock or http://host:port. Set, Silo configures that Caddy. |
caddy.upstream |
127.0.0.1:<http_addr port> |
The control plane’s address as Caddy reaches it, host:port. |
caddy.mode |
auto |
auto (Let’s Encrypt for a public domain, Caddy’s own authority for an address or a local name), acme, internal (browsers warn until its root is installed) or off. |
caddy.email |
none | The Let’s Encrypt account’s address, for expiry notices. |
caddy.dns_provider |
none | Prove domains to Let’s Encrypt through this DNS host instead of port 80, which needs no inbound connection and gives a wildcard: cloudflare, route53, azure, bunny, desec, digitalocean, duckdns, gandi, godaddy, hetzner, ionos, linode, namecheap, netcup, ovh, porkbun or vultr. |
caddy.dns.<provider>.<field> |
none | That provider’s credentials, by the names its libdns module uses (caddy.dns.cloudflare.api_token). The HTTPS page lists each provider’s fields. |
public_url |
the request’s origin | The console’s address. In development, http://localhost:5173. |