service/forum: document read-only mode authored by Jérôme Charaoui's avatar Jérôme Charaoui
......@@ -141,6 +141,27 @@ Within the container its possible to restart the Discourse daemon using:
sv restart unicorn
## Read-only mode
It's possible to enable "read-only" mode on the forum, which will prevent any
changes and will block and new topic, replies, messages, settings changes, etc.
To enable it, navigate to the `Admin` section, then `Backups` and click the
button labeled `Enable read-only`.
It's also possible to enable a "partial read-only" mode which is like normal
"read-only" except it allows administrators to make changes. Enabling this mode
must be done via the rails console:
Discourse.enable_readonly_mode(Discourse::STAFF_WRITES_ONLY_MODE_KEY)
To disable it:
Discourse.disable_readonly_mode(Discourse::STAFF_WRITES_ONLY_MODE_KEY)
The documentation for this feature is found at
https://meta.discourse.org/t/partial-read-only-mode/210401/18
## Pager playbook
## Disaster recovery
......
......