Configuration
30-config.yaml (additions)
OVERLEAF_HEADER_EXTRAS or the footers is ignored and only logged at startup.
Maintenance mode
The maintenance page is shown while the file/etc/overleaf/site_status in the container contains closed. Each pod has its own copy of this file, and a new or restarted pod starts open. To close the site, write the file in every pod:
open the same way to end it. The pods pick the change up within 5 seconds.
The admin panel’s Close Editor works differently: it closes the editor only in the replica that served the admin’s request, and that replica opens it again when it restarts. With several replicas, use the file as above instead.
Tested on Kubernetes
On Kubernetes 1.37: with the settings above in the ConfigMap, the pages showedOVERLEAF_NAV_TITLE, the left footer and, after logging in, the link from OVERLEAF_HEADER_EXTRAS (the login pages hide the header links). Writing closed into /etc/overleaf/site_status of one pod showed the maintenance page with OVERLEAF_MAINTENANCE_MESSAGE on that pod only, and open ended it within seconds. With three replicas, the admin panel’s Close Editor closed the editor only on the replica that served the admin, while the other two stayed open.
