Skip to content
GitAudience

Production checklist

.md

What to check on a self-hosted GitAudience instance before your team relies on it.

Go through this list before your team signs in and before an agent starts enriching. It assumes the reference compose.yaml from Installation.

Network and HTTPS

  • Put a reverse proxy with TLS in front of port 3000, and send every path of your domain to it: the console, /api and /mcp share one origin.
  • Set PUBLIC_URL to the public https:// address. GitAudience writes it into invitation links, into the GitHub Apps it creates and into the MCP command your agent runs. To change it later, follow Changing the domain.
  • Set TRUST_PROXY to the number of proxies in front of the api: 1 in the reference compose file. The limits on sign-in attempts count per IP address, read from X-Forwarded-For according to this value.
  • The compose file publishes port 3000 on every interface. When the proxy runs on the same server, set API_PORT=127.0.0.1:3000 in .env, or close the port in your firewall.
  • Let the server reach api.github.com, your SMTP server and check.gitaudience.com. Without check.gitaudience.com, every project stays under the free limit.

Secrets and database

  • Generate one random POSTGRES_PASSWORD and one SECRET_KEY (32 random bytes in base64). Keep SECRET_KEY with your backups.
  • Password of the single application account gitaudience, shared by migrate, API and worker. The reference Compose file passes PGHOST, PGPORT, PGDATABASE, PGUSER and POSTGRES_PASSWORD separately. Use these structured settings or DATABASE_URL, never both. Special characters in the password are supported; percent-encode credentials when writing a URL yourself. Keep $ literal according to your environment-file quoting rules.
  • Keep PostgreSQL off the network. The reference compose file publishes no port for it.
  • Run exactly one api and one worker. Sign-in limits and the limit check live in each process’s memory.

Email

  • Check that a sign-in code arrives at ROOT_EMAIL. Sign-in codes and invitations go through the SMTP server in .env; nobody can sign in without it.
  • The worker uses the same server to email owners when an alert is raised, such as a sync that could not read the full list of stargazers or a repository that became private.
  • Keep the rescue command at hand: docker compose exec api gitaudience login-link <email> prints a one-time sign-in link for an active user, without email.

Users and access

  • ROOT_EMAIL is a permanent owner. Invite the rest of the team from Settings › Users, as Owner or Member. Members can read everything, email addresses included, and can export, annotate and filter. Only owners configure projects, review answers, and manage tokens, GitHub Apps and users. See Users.
  • Each MCP token belongs to one project. Removing a user revokes the tokens they created on every project.

Backups

  • Run backup.sh on a schedule and copy the dumps off the server, with .env. Backups gives the commands.
  • Restore one dump into an empty installation at least once, and sign in to check a project, before you rely on it.

Updates

  • Pin the release in GITAUDIENCE_IMAGE, so that nothing changes until you decide. When Update available shows in the sidebar footer, follow Upgrade to a new release.
  • Decide on the daily version check: RELEASE_CHECK_ENABLED=false turns it off.

Database size

  • The reference settings in deploy/postgres/postgresql.reference.conf, in the repository, are sized for 100,000 people on a server with 8 GB of RAM. Scale the memory settings to your server.

Monitoring

  • Watch GET /health. It answers 200 with {"status":"ok"} when the api reaches its database within 2 seconds, and 503 otherwise. The compose file uses it as the api health check.
  • Read the logs with docker compose logs -f api worker. LOG_LEVEL sets the level, info by default. Logs never contain tokens, sign-in codes, secrets or email addresses.
  • Watch the alerts in the console: each project shows its own as a banner, to every user, until the cause goes away.