]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/templates/default/LocalSettings.php.erb
Use SMTP to send mail from mediawiki
[chef.git] / cookbooks / mediawiki / templates / default / LocalSettings.php.erb
index 8ef611346d35ea0668ba2149eb59635c03e60f98..e808f06a7e83f1c9cad0b9f5ff6ed722c2ebf19d 100644 (file)
@@ -54,6 +54,16 @@ $wgEmailAuthentication = true;
 
 $wgEnotifUseJobQ       = true;
 
+$wgSMTP = [
+  "host" => "localhost",
+  "localhost" => "<%= node[:fqdn] %>",
+  "socket_options" => [
+    "ssl" => [
+      "verify_peer_name" => false
+    ]
+  ]
+];
+
 ## Database settings
 $wgDBtype           = "mysql";
 $wgDBserver         = "<%= @database_params[:host] %>";