Add optional SMTP relaying ..

..+ small README update
This commit is contained in:
3wc 2020-10-06 17:40:27 +02:00
parent 475490f3ed
commit 08b5c1f53e
3 changed files with 16 additions and 2 deletions

View File

@ -36,3 +36,7 @@ export ENTRYPOINT_CONF_VERSION=v1
#export SAML_SECRET_SALT_VERSION=v1
#export SAML_ENTRYPOINT_CONF_VERSION=v1
## SMTP
#export COMPOSE_FILE="compose.yml:compose.mailrelay.yml"
#export SMTP_HOST=postfix_relay_app

View File

@ -182,3 +182,13 @@ $wgGroupPermissions['*']['createaccount'] = false;
$wgDebugLogFile = "/var/log/debug-{$wgDBname}.log";
{{ end }}
{{ if env "SMTP_HOST" }}
$wgSMTP = [
'host' => '{{ env "SMTP_HOST" }}', // could also be an IP address. Where the SMTP server is located
'port' => 25, // Port to use when connecting to the SMTP server
'auth' => false, // 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)
];
{{ end }}

View File

@ -21,8 +21,8 @@ Based on [`mediawiki-ve-bundle`][mediawiki-ve].
abra secret_generate mediawiki_secret_key v1 "pwgen -n 64 1"
```
6. `abra deploy`
7. `abra run mediawiki /bin/bash` to open a shell
8. `php /var/www/html/maintenance/createAndPromote.php YourUsername YourPassword`
7. Create an initial admin user:
`abra run app php /var/www/html/maintenance/createAndPromote.php YourUsername YourPassword`
## SimpleSAMLphp