Office docsRun it
Make it reachable
Browsers and the desktop app reach the installation by name, over TLS, with a publicly trusted certificate. Choose the route before you install.
The installation records its hostname on first boot. To use a different name later, you have to discard the installation and its data and install again.
Choose a route
| Your situation | Option | Reachable from |
|---|---|---|
| You and a small team, on your own devices | --tailscale | Devices signed in to your tailnet |
| A domain, with Caddy, nginx or Traefik in front | --proxy 127.0.0.1 | Anywhere |
| You use Cloudflare | --cloudflare | Anywhere, with no inbound port when you use a Tunnel |
| Trying it out on one machine | --mode local | That machine only |
The desktop app and browsers refuse a privately signed certificate, because a client that accepted one would accept any server claiming to be yours. The installer refuses a real hostname given without one of these options, before it writes anything.
An option for the installation to obtain its own certificate for a domain (--mode domain) is not available yet. Put a reverse proxy in front instead.
Use Tailscale
Tailscale gives the server a name on your private network and a certificate that devices on that network trust. Nothing is exposed to the internet, and certificates renew on their own. Enable HTTPS certificates for your tailnet in the Tailscale admin console, then run:
$ curl -fsSL https://tailscale.com/install.sh | sh
$ sudo tailscale up
$ ./install.sh --tailscale --admin you@example.com
The installer reads the server's tailnet name, publishes the installation with tailscale serve, trusts that proxy and prints the address, which looks like office.tailXXXX.ts.net. Every device signed in to your tailnet can reach it, including phones and the desktop app. People outside the tailnet cannot. To share with someone, add them to it.
The name comes from the Self block of tailscale status --json. Check it before you install.
| The installer says | What to do |
|---|---|
--tailscale needs the tailscale client | Install Tailscale with the first command above. |
tailscale is installed but not answering | Run sudo tailscale up. |
tailscale is not connected to a tailnet yet | Run sudo tailscale up and complete the login it prints. |
tailscale serve failed | Enable HTTPS certificates for the tailnet in the Tailscale admin console. |
Use a reverse proxy you run
If Caddy, nginx or Traefik terminates TLS on your server, let it obtain the certificate. Give --proxy the addresses the proxy connects from. Use 127.0.0.1 when it runs on the same host, a comma-separated list when it runs elsewhere, or a CIDR when it runs on a container network.
$ ./install.sh --hostname office.example.com --proxy 127.0.0.1 --admin you@example.com
Forward to https://127.0.0.1:8443, and set X-Forwarded-Proto: https and the original Host header. The installer prints both when it finishes.
The upstream must use https. The installation keeps its own TLS behind a proxy. A proxy pointed at http:// gets an empty reply and answers 502, which looks like the installation is down.
Caddy example
office.example.com {
reverse_proxy https://127.0.0.1:8443 {
transport http {
tls
tls_insecure_skip_verify
tls_server_name office.example.com
}
header_up Host {host}
header_up X-Forwarded-Proto https
}
}
The installation's own certificate is issued for its public name, so this configuration skips upstream verification and pins the server name. Caddy obtains and renews the public certificate. It needs a DNS record that points at the server, inbound port 80 for validation and inbound port 443. A firewall closing port 80 is the usual reason certificate issuance fails.
The installation trusts forwarded headers only from the addresses you gave --proxy, and only for its own hostname. A request forwarded with another Host is refused.
Use Cloudflare
--cloudflare is the proxy option with 127.0.0.1 filled in, which is where a Cloudflare Tunnel connects from. cloudflared runs on the server and dials out, so no inbound port has to be open. Prefer this arrangement.
$ ./install.sh --hostname office.example.com --cloudflare --admin you@example.com
If you use the Cloudflare proxy without a Tunnel, set origin encryption to Full (strict) with an Origin CA certificate. Do not use Flexible. It sends plaintext over the internet between Cloudflare and your server.
Try it on one machine
--mode local serves https://localhost:8443 with a privately signed certificate, published on loopback only. A browser on that machine shows a certificate warning you can click through. Use it for evaluation, not for a team.
$ ./install.sh --mode local --admin you@example.com
Use the exact address
The installation accepts changes only from the origin it was installed with. On every request that is not a read, it compares the browser's Origin header with that origin and refuses a mismatch with csrf_denied. This stops another site in your browser from acting as you.
The failure is easy to misread. Reads keep working, so the app loads and lists files, while every save, create and rename is refused with 403.
- Open the URL
install.shprinted. It is read back from the installation itself. 127.0.0.1is a different origin fromlocalhost. So is the same host on another port.- If you edit the port mapping by hand on an installation that browsers reach directly, keep the published port equal to the port in the origin.