diff --git a/caddy/Dockerfile b/caddy/Dockerfile index c577f70..73f3bef 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -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" ] diff --git a/caddy/README.md b/caddy/README.md deleted file mode 100644 index 1f4dfb0..0000000 --- a/caddy/README.md +++ /dev/null @@ -1,4 +0,0 @@ -command to invoke net plugin: - -`sudo ./caddy -type=net -conf test.conf` - diff --git a/caddy/net.conf b/caddy/net.conf index 4a82537..a3bbddb 100644 --- a/caddy/net.conf +++ b/caddy/net.conf @@ -1,3 +1,4 @@ proxy :853 172.28.1.4:53 { host FQDN_NAME_HERE + tls EMAIL_ADDRESS_HERE }