++certbot
This commit is contained in:
parent
5826928abe
commit
f0351aa2a6
2 changed files with 13 additions and 1 deletions
12
ungleich-certbot/Dockerfile_1.2.0
Normal file
12
ungleich-certbot/Dockerfile_1.2.0
Normal 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"]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue