mediawiki: prefer https by default
authorGrant Slater <git@firefishy.com>
Mon, 26 Sep 2016 11:48:20 +0000 (13:48 +0200)
committerGrant Slater <git@firefishy.com>
Mon, 26 Sep 2016 11:48:20 +0000 (13:48 +0200)
cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index 26893ecb9ef53529cad073fefba5dc5ee89ff275..80a5e8710e29e62b7accfe9055ecefa01318f06b 100644 (file)
@@ -28,7 +28,7 @@ $wgInternalServer   = 'http://<%= @name %>';
 
 <% if @mediawiki[:ssl_enabled] -%>
 $wgSecureLogin = true;
-$wgDefaultUserOptions['prefershttps'] = 0;
+$wgDefaultUserOptions['prefershttps'] = 1;
 <% end -%>
 $wgCookieSecure = false;