> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# A rented server: Mono under its own public name

> Install Mono on a rented cloud server (Azure, AWS, Hetzner) with its own public name. The install line sets up Caddy and the certificate from Let’s Encrypt and ends with the set-up link.

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.

> [accordion] What you need
>
> * 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](https://mono.mintlify.site/en/admins/self-hosting.md), 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

| What | How |
| - | - |
| Caddy | from the system’s packages or Caddy’s signed apt repository; `apt upgrade` updates it |
| `/etc/caddy/Caddyfile` | Caddy’s admin endpoint off, and one import of `/etc/caddy/mono.d/` |
| `/etc/caddy/mono.d/<short name>.caddy` | this server’s site: your name to Mono on `127.0.0.1:8787` |
| Mono | answers only on `127.0.0.1`; Caddy passes every request on |

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.

| Mono says | What you do |
| - | - |
| «Let’s Encrypt cannot reach ports 80 and 443 …» | Open the two ports in your provider’s firewall. |
| «Let’s Encrypt finds no address for …» | Check the A record at your DNS provider. |
| «Let’s Encrypt reached another server under …» | The name points to another address: correct it. |
| «Let’s Encrypt gives no new certificate … right now» | Wait an hour, then run the line again. |
| «… answers, but from another server» | The name still points to an old server: correct the DNS record. |

`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`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.