首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从wikibase docker容器发送传出电子邮件

从wikibase docker容器发送传出电子邮件
EN

Stack Overflow用户
提问于 2020-08-13 15:20:30
回答 1查看 71关注 0票数 1

我们已经安装了wikibase-docker,并在其前面安装了一个Apache服务器来处理SSL,并将两个vhost代理到Docker的端口。

当我使用PasswordReset函数时,它应该会发出一封电子邮件。但是相反,wikibase容器只记录sh: 1: -t: not found

EN

回答 1

Stack Overflow用户

发布于 2020-08-13 15:20:30

在搜索了一下之后,我找到了MediaWiki配置选项$wgSMTP,它可以添加到维基容器中的LocalSettings.php中。

代码语言:javascript
复制
$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)
];
代码语言:javascript
复制
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.php
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63390038

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档