From 06f725519d20d045acdf7ca602d60aca66822461 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Mon, 17 Aug 2020 14:51:41 +0200 Subject: [PATCH] Make ask.openstack.org read-only Nobody maintains our askbot website, and questions there go unanswered. In the spirit of simplification, make the site read-only (so that old answers can still be found) and redirect users to the openstack-discuss mailing-list and Stack Overflow (which has a decent openstack community answering questions). Read-only config values documented at: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/conf/access_control.py Change-Id: I33d9d7c87a5a17138fcdc37ee8f8b16cda2248d5 --- .../openstack_project/templates/askbot/settings.py.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/openstack_project/templates/askbot/settings.py.erb b/modules/openstack_project/templates/askbot/settings.py.erb index 54161a9262..870d992c5a 100644 --- a/modules/openstack_project/templates/askbot/settings.py.erb +++ b/modules/openstack_project/templates/askbot/settings.py.erb @@ -365,6 +365,14 @@ LIVESETTINGS_OPTIONS = { 1: { 'DB': True, 'SETTINGS': { + 'ACCESS_CONTROL': { + 'READ_ONLY_MODE_ENABLED': True, + 'READ_ONLY_MESSAGE': + 'The ask.openstack.org website will be read-only from ' + 'now on. Please ask questions on the openstack-discuss ' + 'mailing-list or on stackoverflow.com instead (use the ' + '"openstack" tag).' + }, 'GENERAL_SKIN_SETTINGS': { <% if @custom_theme_enabled %> 'ASKBOT_DEFAULT_SKIN': '<%= @custom_theme_name %>',