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

ansible-inventories/arocom#2847 Add support for mailhog

parent 184b4579
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,15 @@ if (file_exists('modules/contrib/redis/redis.info.yml') && extension_loaded('red
}
{% if item.mailhog|default(false) %}
$config['smtp.settings']['smtp_host'] = 'mailhog';
$config['smtp.settings']['smtp_hostbackup'] = '';
$config['smtp.settings']['smtp_port'] = '1025';
$config['smtp.settings']['smtp_protocol'] = 'standard';
$config['smtp.settings']['smtp_username'] = '';
$config['smtp.settings']['smtp_password'] = '';
{% endif %}
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
......@@ -41,6 +41,21 @@
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
{% if drupal_domain.mailhog|default(false) %}
{% if drupal_domain.apache_auth is defined and drupal_domain.apache_auth.active|default('true') == 'true' %}
<Location /mailhog/>
AuthType {{ drupal_domain.apache_auth.type }}
AuthName "{{ drupal_domain.apache_auth.name }}"
AuthUserFile {{ webRoot }}/passwords/{{ drupal_domain.apache_auth.user }}
Require user {{ drupal_domain.apache_auth.user }}
</Location>
{% endif %}
ProxyPass "/mailhog/api/v2/websocket" ws://localhost:8025/api/v2/websocket
ProxyPassReverse "/mailhog/api/v2/websocket" ws://localhost:8025/api/v2/websocket
ProxyPass /mailhog/ http://localhost:8025/
ProxyPassReverse /mailhog/ http://localhost:8025/
{% endif %}
{% if drupal.docker|default(false) %}
ServerSignature Off
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment