Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
fixed email build variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eldridgea committed Jan 6, 2019
1 parent 754c7e1 commit d290024
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions caddy/Dockerfile
Expand Up @@ -10,11 +10,12 @@ RUN curl https://getcaddy.com | bash -s personal net
# Copy configs
COPY net.conf /root/net.conf

#
# Update config file with build variables
RUN sed -i "s/FQDN_NAME_HERE/$ERISEDHOST/" /root/net.conf
RUN sed -i "s/EMAIL_ADDRESS_HERE/$ERISEDEMAIL/" /root/net.conf

# Set CADDYPATH variable to point where certificates will be stored
ENV CADDYPATH=/root/.caddy

# Run caddy
CMD [ "caddy", "-type=net", "-agree", "-email", $ERISEDEMAIL, "-conf", "/root/net.conf" ]
CMD [ "caddy", "-type=net", "-agree", "-conf", "/root/net.conf" ]
4 changes: 0 additions & 4 deletions caddy/README.md

This file was deleted.

1 change: 1 addition & 0 deletions caddy/net.conf
@@ -1,3 +1,4 @@
proxy :853 172.28.1.4:53 {
host FQDN_NAME_HERE
tls EMAIL_ADDRESS_HERE
}

0 comments on commit d290024

Please sign in to comment.