Sure, you can enable/disable read-only mode from discourse.example.com/admin/backups.
discourse.example.com/admin/backups