Skip to content
Snippets Groups Projects
Commit f9ec8f63 authored by jurgenhaas's avatar jurgenhaas
Browse files

#44 Enable preconfigured Mailhog release mail feature

parent 048f62ad
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,13 @@ class Handler extends BaseHandler {
'type' => 'apache',
'overwriteconfig' => FALSE,
],
'mailhog' => [
'host' => $this->env->receiveGlobal('MAILHOG_HOST', 'smtp.freesmtpservers.com'),
'port' => $this->env->receiveGlobal('MAILHOG_PORT', '25'),
'username' => $this->env->receiveGlobal('MAILHOG_USERNAME', ''),
'password' => $this->env->receiveGlobal('MAILHOG_PASSWORD', ''),
'mechanism' => $this->env->receiveGlobal('MAILHOG_MECHANISM', 'NONE'),
],
'varnish' => [
'enable' => 0,
],
......@@ -373,6 +380,9 @@ class Handler extends BaseHandler {
'dest' => $projectRoot . '/apache',
'condition' => $this->config->readValue(['webserver', 'overwriteconfig']),
],
'mhout.json' => [
'dest' => $projectRoot . '/tests',
],
];
}
......
......@@ -159,6 +159,11 @@ services:
mailhog:
image: 'mailhog/mailhog'
environment:
MH_OUTGOING_SMTP: /test/mhout.json
privileged: true
volumes:
- {{ projectroot }}/tests/mhout.json:/test/mhout.json
labels:
traefik.enable: 'true'
traefik.network: {{ projectname }}
......
{
"MySMTP": {
"name": "MySMTP",
"host": "{{ mailhog.host }}",
"port": "{{ mailhog.port }}",
"username": "{{ mailhog.username }}",
"password": "{{ mailhog.password }}",
"mechanism": "{{ mailhog.mechanism }}"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment