Turn it on
On the deployment’s Access control card (owners and workspace admins):- Keep Public checked.
- Check Password-protected and set a password.
- Save.
- The password you set.
- Continue with Mangrove account: anyone with a Mangrove account on
this box can sign in instead. This needs
MANGROVE_PUBLIC_URLset, so Mangrove knows where to send them back. Without it, only the password option appears.
Leave some pages open
Unprotected pages takes one path per line. Those skip the gate; everything else stays protected.
An open page’s own CSS, scripts and images need their paths listed too
(for example
/assets/*), or they’ll hit the gate. Query strings are
ignored, and tricks like /docs/../admin never match.
To change the list without changing the password, leave the password field
blank and save.
Limits
- Single-service deployments only. Compose stacks can’t be protected this way.
- Meant for low traffic. Every protected request passes through Mangrove itself, so it’s right for a staging gate, not a busy production site.
- Two protected deployments on the same host name, on different ports, share a cookie name. Signing into one signs you out of the other. A custom domain for each avoids this.