Skip to main content
For a server you rent for the firm with its own public name: an Azure VM, an AWS instance, a Hetzner cloud server. The install line sets up everything on it: Caddy in front of Mono on ports 80 and 443, the certificate from Let’s Encrypt, and at the end the address and the set-up link for the first admin.
  • Ubuntu 22.04 or 24.04, Debian 12, or another Linux with apt-get or dnf. Mono needs Caddy 2.10.2 or newer: where the system offers an older one or none, Caddy comes from Caddy’s own signed apt repository.
  • A name on the internet that points to the server: the one your provider gives it (on Azure ….cloudapp.azure.com) or an A record of your own domain.
  • Ports 80 and 443 open for TCP in your provider’s firewall (Azure: network security group, AWS: security group, Hetzner: firewall).
  • Nothing else on ports 80 and 443 of the server. A Caddy of your own may stay: see below.

Install

1

Open ports 80 and 443 at your provider

Let’s Encrypt checks the name from outside on port 80; your people and AI clients come in on 443.
2

Run the install line

The line from Self-hosting, with --start.
3

Answer the first questions

The organization’s name, the country and the language. At «Way» type more, then direct.
4

Confirm the open ports

Mono says what opens and asks «Open ports 80 and 443 for Mono?». Type y. Enter or n keeps them closed and goes back to the way, with your answers kept.
5

Give the server’s name

Without a port, for example mono.firm.example. Before it changes anything, Mono checks that the name resolves and that nothing else holds ports 80 and 443. After the start it checks that this server answers under the name.
6

Check the answers

The read-back shows «Address» and what Mono installs. Enter installs.
7

Open the set-up link

The last screen shows «Mono is running: https://…» and the set-up link. You become the first admin.

What Mono sets up

A Caddyfile with sites of your own is never rewritten: Mono asks to add one import line to its end. A second firm on the same server gets a site file of its own. Choosing another way or removing the server removes its site at once; Caddy stops when no Mono site is left.

When the address does not answer

The installer stops with the cause. Your answers are saved: once the cause is fixed, the same line asks nothing and checks again. sudo mono status names Caddy’s log. Once the address answers, sudo mono setup-link gives the set-up link.

Safety

  • The two ports are open to the internet. Nothing stands in front of the sign-in pages, unlike Mono Edge or a Cloudflare Tunnel: keep the server updated.
  • The certificate stays on your server: no third party sees the requests.
  • Caddy’s admin endpoint is off in Mono’s Caddyfile. With a Caddyfile of your own, add «admin off» to its global options; the install line says so.
  • Programs on the server itself can reach Mono past Caddy and name any sender for Mono’s rate limits; they gain no right by it.
  • Only on a server of your own or one rented for the firm, never in a client firm’s own network.
  • An install line without a person at the terminal confirms the open ports with --i-understand-open-port, for example --tunnel direct --i-understand-open-port --public-url https://mono.firm.example.
Last modified on December 3, 2026