Browse Source

Add email variable

master
parent
commit
bd5e624538
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      Dockerfile
  2. 1
    1
      haraka.sh

+ 1
- 0
Dockerfile View File

@@ -1,6 +1,7 @@
FROM node:latest

ENV HOSTNAME=${HOSTNAME:-haraka}
ENV EMAIL=${EMAIL:-test@email.tld}

RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \
apt-get update && apt-get upgrade -y && apt-get -t jessie-backports install -y supervisor certbot cron && \

+ 1
- 1
haraka.sh View File

@@ -10,7 +10,7 @@ echo $HOSTNAME > /haraka/config/me

# Get and install certificates from Let's Encrypt
if [ ! -f /haraka/config/tls ]; then
certbot certonly -n --agree-tos -d "$HOSTNAME" --standalone --preferred-challenges http
certbot certonly -n --agree-tos --email "$EMAIL" -d "$HOSTNAME" --standalone --preferred-challenges http
mkdir -p /haraka/config/tls
cd /haraka/config/tls
ln -s /etc/letsencrypt/live/$HOSTNAME/privkey.pem tls-key.pem

Loading…
Cancel
Save