🎁 Let's Encrypt certificates via a temporary Nginx in Docker
Warning
Deprecated. This image is no longer maintained or rebuilt, and the repository is archived. The last image on
Docker Hub was built in 2020 on Debian jessie, which is end-of-life. Use certbot/certbot instead.
Issues 90-day SSL certificates for the given domains, on Debian jessie.
The container starts a simple Nginx server on port 80 and waits for Let's Encrypt validation. It serves only
requests to mydomain.com/.well-known, all other requests are forbidden.
server {
listen 80;
server_name $DOMAINS;
location ^~ /.well-known/ {
root /var/www/acme-certs;
}
location / {
return 403;
}
}docker run \
-p 80:80 \
-v /srv/certs/mydomain.com:/var/www/certs \
--name le \
-e DOMAINS='mydomain.com www.mydomain.com' \
-e EMAIL='my@email.tld' \
dockette/letsencrypt:latestAdd -it for an interactive shell. Copies of the certificates end up in /srv/certs/mydomain.com/.
See how to contribute to this package. Consider to support f3l1x. Thank you for using this package.