Go through this list once after deploying.
Ports
Open only 80, plus 443 with HTTPS. Both are served by Dash.
| Port | Service | Exposure |
|---|---|---|
80 / 443 | Dash | Users |
8080 | MOF API | Inside the containers only |
8001 | MCP | Inside the containers only |
The templates do not publish 8080 or 8001; keep it that way. Dash forwards only /v1/mof, OAuth discovery and the health check to MOF, so metrics and API docs under /internal are not reachable on port 80.
HTTPS
Dash turns on HTTPS by itself when it finds a certificate: put tls.crt and tls.key in a certs folder next to compose.yaml, then add to the dash service:
ports:
- "80:80"
- "443:443"
volumes:
- ./certs:/etc/nginx/certs:roRun docker compose up -d. HTTP then redirects to HTTPS. If the public HTTPS port is not 443, set DASH_HTTPS_PORT to it so the redirect lands on the right port. You can also terminate HTTPS at your own load balancer or Nginx instead.
Browser sign-in for AI clients needs HTTPS; see MCP and OAuth.
Keys
In Admin → Settings → Keys:
- Encryption key: protects cloud account credentials and email passwords. It starts as the system default; set your own right after deploying. Saving re-encrypts everything in a few seconds without downtime. Keep the new key somewhere safe.
- Sign-in signing key: generated on first start; nothing to do. If you suspect a leak, click Regenerate; everyone has to sign in again within an hour. To keep it in your own secret manager, set
MOF_JWT_SECRET. - Admin password: random, shown once in the log on first start. Lost it? Set
MOF_ADMIN_PASSWORDand restart MOF.
Database
- Reach PostgreSQL over a private network only; never expose it to the internet.
- Use a dedicated role with login and CREATEDB permissions only.
- TLS-only PostgreSQL is not supported yet, so the connection must stay on a trusted network.
Anyone who can read the database can read all data and keys. Database access control is the security boundary of the whole system.
Outbound access
MOF calls out to:
| Destination | Used for |
|---|---|
| Cloud provider APIs | Syncing bills and resources |
data.mofcloud.com | Price data updates |
| Your email service | Notifications, if set up |
Without direct internet access, go through a proxy with HTTPS_PROXY, and put the database address in NO_PROXY. See Environment variables.