# Settings (https://unmissed.dev/docs/settings)

Keep these in a [`.env` file](#the-env-file) next to `docker-compose.yml`.

| Setting | Default | What it does |
| --- | --- | --- |
| `APP_URL` | `http://localhost:8080` | The public address. Receiving URLs start with it. |
| `PORT` | `8080` | The port on your machine. |
| `BIND_ADDRESS` | `0.0.0.0` | Set `127.0.0.1` to accept connections from this machine only. Do this when your HTTPS proxy runs on the same machine. |
| `APP_KEY` | Generated | Encrypts login cookies and signing secrets. If you leave it empty, one is generated and kept in the `data` volume. |
| `TRUSTED_PROXIES` | None | The addresses of your HTTPS proxy, comma-separated (`10.0.0.2`, `172.16.0.0/12`). Without it, everyone behind the proxy shares one rate limit. `*` trusts any proxy: only use it with `BIND_ADDRESS=127.0.0.1`, or visitors could fake their address. |
| `METRICS_TOKEN` | Off | Turns on Prometheus metrics at `/metrics`, for scrapers that send it as a bearer token. See [Monitoring](/docs/monitoring). |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Off | Sends traces to your OpenTelemetry collector. See [Tracing](/docs/tracing). |
| `OTEL_EXPORTER_OTLP_HEADERS` | None | Headers for a hosted collector that needs a key, such as `x-honeycomb-team=your-key`. |
| `OTEL_SERVICE_NAME` | `unmissed` | The service name in your traces. |
| `MAIL_MAILER` | `log` | Set `resend` to send email through [Resend](https://resend.com). `log` only writes emails to the log. |
| `RESEND_API_KEY` | None | Your Resend API key. Without it, emails fail to send. |
| `MAIL_FROM_ADDRESS` | `alerts@example.com` | Who emails come from. Use an address on a domain you've verified in Resend. |

## The `.env` file [#the-env-file]

Keep your settings in a `.env` file next to `docker-compose.yml`, one `NAME=value` per line, then run `docker compose up -d` again. Settings typed on the command line last only for that run.

```ini
APP_URL=https://hooks.example.com
TRUSTED_PROXIES=10.0.0.2
METRICS_TOKEN=a-long-random-string
```

Only the settings on this page reach the app. Docker Compose passes these and nothing else.

## Email [#email]

To send email alerts, invites and password reset emails, set all three: `MAIL_MAILER=resend`, `RESEND_API_KEY` and `MAIL_FROM_ADDRESS`.

```ini
MAIL_MAILER=resend
RESEND_API_KEY=re_...
MAIL_FROM_ADDRESS=alerts@hooks.example.com
```

Until all three are set, email alerts are only written to the log, and an admin copies invite and reset links from the Team page. Slack, Discord and URL alerts work either way.