email_contact "webmaster@openstreetmap.org"
email_sender "webmaster@openstreetmap.org"
email_sender_name "OSMF Wiki"
+ private_accounts true
end
cookbook_file "/srv/wiki.osmfoundation.org/Wiki.png" do
:site_admin_user => "Admin",
:site_admin_pw => params[:admin_password],
:enable_ssl => params[:enable_ssl] || FALSE,
+ :private_accounts => params[:private_accounts] || FALSE,
:private => params[:private] || FALSE
}
$wgGroupPermissions['bureaucrat']['deleterevision'] = true;
$wgGroupPermissions['bureaucrat']['suppressrevision'] = true;
$wgGroupPermissions['bureaucrat']['suppressionlog'] = true;
+
+<% if @mediawiki[:private_accounts] -%>
+#Prevent new user registrations except by existing users
+$wgGroupPermissions['*']['createaccount'] = false;
+$wgGroupPermissions['user']['createaccount'] = true;
+<% end -%>
<% if @mediawiki[:private] -%>
#Disable reading by anonymous users