GitAudience takes its public address from one variable, PUBLIC_URL. The console accepts changes only from that address, the session cookie belongs to it, and GitAudience copies it into a few places outside the instance: the GitHub Apps it created, the MCP command of each agent and the invitation links already sent. To move the instance, change PUBLIC_URL, then update those places.
Switch to the new domain
Route the new domain
In your reverse proxy, send the new domain to port 3000 of the server, with a TLS certificate.
PUBLIC_URLmust be anhttps://address.Keep the old domain redirecting to the new one for a while, path and query string included, for bookmarks and links already shared.
Change PUBLIC_URL
In
.env, set the new address, then recreate the containers:# In .env: PUBLIC_URL=https://audience.new-domain.example docker compose up -dCompose restarts
apiandworkerwith the new value. Your data doesn’t change.Sign in again on the new domain
Sessions belong to the address they were opened on: everyone signs in again, with a code sent by email.
The console refuses every change sent from an address other than
PUBLIC_URL. A console left open on the old domain can’t save anything.Update the places that copied the address
Work through the table below.
What else uses the address
| Uses the address | After the change | What to do |
|---|---|---|
| GitHub Apps created by GitAudience | Each App keeps the address of the day it was created: its homepage URL and its setup URL, <PUBLIC_URL>/api/github/installation/callback, where GitHub sends you back after installing the App or changing its repositories. | For each App listed in Settings › GitHub Apps, open the App’s settings on GitHub, with an account allowed to edit the App, and replace the old address with the new one in both URLs. Apps created after the change use the new address. |
| MCP connections of your agents | Each agent calls <PUBLIC_URL>/mcp with the old address. | On every machine that runs an agent, remove the MCP server and add it again with the new address, as Settings › MCP agent shows. The token stays valid: reuse the one already in the agent’s configuration, or create a new one. The sub-agent files don’t change. See Connect your agent. |
| Pending invitations | Their link, <PUBLIC_URL>/login?invitation=…, points to the old address. | Invite the same addresses again from Settings › Users: a new invitation replaces the pending one for that address. |
Sign-in links from gitaudience login-link | Built with the old address. | Run the command again after the change. |
| Bookmarks and links shared by your team | Point to the old address. | Keep the old domain redirecting to the new one. |
The limit check is not affected: check.gitaudience.com receives the address of your GitHub repository, never the address of your instance.
Note
Moving from a trial on localhost? The GitHub Apps created during the trial carry the localhost address as their homepage and setup URL. Update them on GitHub as in the table.