mail: Remove mailhog
This commit is contained in:
parent
03e4aa8c80
commit
4914d83bd8
18
README.md
18
README.md
|
@ -30,21 +30,3 @@ Alternatively you can run docker manually with something like the following:
|
||||||
```console
|
```console
|
||||||
docker run --env-file=snikket.conf -p 80:5280 -p 443:5281 -p 5222:5222 -p 5269:5269 snikket
|
docker run --env-file=snikket.conf -p 80:5280 -p 443:5281 -p 5222:5222 -p 5269:5269 snikket
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
Dev images have a few additional features.
|
|
||||||
|
|
||||||
### Local mail server
|
|
||||||
|
|
||||||
Outgoing emails from dev images are captured by a local [MailHog](https://github.com/mailhog/MailHog)
|
|
||||||
instance and are accessible in a dashboard served on port 8025. The dashboard requires authentication.
|
|
||||||
The username is 'snikket' and the auto-generated password can be found with the following command:
|
|
||||||
|
|
||||||
```console
|
|
||||||
docker exec snikket_snikket_1 cat /tmp/mailhog-password
|
|
||||||
```
|
|
||||||
|
|
||||||
Replace `snikket_snikket_1` with the name of your running container if it differs.
|
|
||||||
|
|
||||||
MailHog is not included in production images, which require a real SMTP server.
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
[program:mailhog]
|
|
||||||
command=/usr/local/bin/mailhog -auth-file=/etc/mailhog-auth
|
|
||||||
autorestart=true
|
|
||||||
stopwaitsecs=30
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
redirect_stderr=true
|
|
||||||
umask=002
|
|
|
@ -10,23 +10,3 @@
|
||||||
copy:
|
copy:
|
||||||
src: ../files/msmtp.conf
|
src: ../files/msmtp.conf
|
||||||
dest: /etc/msmtprc
|
dest: /etc/msmtprc
|
||||||
|
|
||||||
- name: Download MailHog
|
|
||||||
get_url:
|
|
||||||
url: "https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64"
|
|
||||||
checksum: sha256:ba921e04438e176c474d533447ae64707ffcdd1230f0153f86cb188d348f25c0
|
|
||||||
dest: /usr/local/bin/mailhog
|
|
||||||
mode: 0755
|
|
||||||
tags: dev
|
|
||||||
|
|
||||||
- name: Add MailHog authentication
|
|
||||||
template:
|
|
||||||
src: "../templates/mailhog-auth"
|
|
||||||
dest: "/etc/mailhog-auth"
|
|
||||||
tags: dev
|
|
||||||
|
|
||||||
- name: Add MailHog service
|
|
||||||
copy:
|
|
||||||
src: "../files/supervisor-mailhog.conf"
|
|
||||||
dest: "/etc/supervisor/conf.d/mailhog.conf"
|
|
||||||
tags: dev
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
snikket:{{ lookup('password', '/tmp/mailhog-password length=15')|password_hash("bcrypt", lookup('password', '/tmp/mailhog-salt length=21 chars=letters,digits')+".") }}
|
|
Loading…
Reference in New Issue