++certbot

This commit is contained in:
Nico Schottelius 2026-07-05 21:14:39 +02:00
commit f0351aa2a6
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,12 @@
FROM nginx:1.31.2-alpine
RUN mkdir -p /nginx /www_http
COPY nginx-http-redir.conf /nginx/default.conf
# For renewing the certificates
COPY renew_cert.sh /etc/periodic/daily/renew_cert
RUN apk update && apk add certbot bind-tools
COPY entrypoint.sh /
CMD ["/entrypoint.sh"]

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Nico Schottelius, updated 2026-07-05
if [ -z "$DOMAIN" -o -z "$EMAIL" ]; then
echo Missing DOMAIN or EMAIL parameter - aborting. >&2