我们已经安装了wikibase-docker,并在其前面安装了一个Apache服务器来处理SSL,并将两个vhost代理到Docker的端口。
当我使用PasswordReset函数时,它应该会发出一封电子邮件。但是相反,wikibase容器只记录sh: 1: -t: not found。
发布于 2020-08-13 15:20:30
在搜索了一下之后,我找到了MediaWiki配置选项$wgSMTP,它可以添加到维基容器中的LocalSettings.php中。
$wgSMTP = [
'host' => 'mail.example.com', // could also be an IP address. Where the SMTP server is located
'IDHost' => 'example.com', // Generally this will be the domain name of your website (aka mywiki.org)
'port' => 25, // Port to use when connecting to the SMTP server
'auth' => true, // Should we use SMTP authentication (true or false)
'username' => 'my_user_name', // Username to use for SMTP authentication (if being used)
'password' => 'my_password' // Password to use for SMTP authentication (if being used)
];docker cp wikibase-docker_wikibase_1:/var/www/html/w/LocalSettings.php LocalSettings.php
edit LocalSettings.php
docker cp LocalSettings.php wikibase-docker_wikibase_1:/var/www/html/w/LocalSettings.phphttps://stackoverflow.com/questions/63390038
复制相似问题