# Security Notes<no value>

## Admin Authentication

Admin endpoints can be protected with a token:

```bash
--admin-token your-secret-token
```

Requests to admin endpoints must include the token:

```bash
curl -H "Authorization: Bearer your-secret-token" \
  http://localhost:3000/api/v1/admin/instances
```

## TLS

The relay does not terminate TLS natively. In production, use a reverse proxy:

```
Caddy / Nginx → TLS → Relay (localhost:3000)
```

## Rate Limiting

Default limits:
- 100 requests per minute per client
- 5000 requests per hour per client

## Feature Toggles

Disable unused modules to reduce attack surface:

```bash
--disable guestbook,security
```
