Sign inSign up

nightech/nginx-letsencrypt-proxy

By nightech

•Updated over 7 years ago

Docker Image with nginx & certbot

Image
0

881

nightech/nginx-letsencrypt-proxy repository overview

⁠Nginx Let's Encrypt Proxy

⁠Docker Image with nginx & certbot

⁠Features

  • Redirect all http traffic to https
  • Server the acme challenge in http thru nginx

⁠Basic Usage

# Add --staging to all command in order test all the process without reaching api limit of Let's encrypt

# Run the container 
docker run -p 80:80 --name='nginx-letsencypt-proxy' nightech/nginx-letsencrypt proxy

# Cert generation
docker exec nginx-letsencypt certbot certonly -n --webroot --staging -d {DOMAIN} -d {SUBDOMAIN} -m {EMAIL}

# DNS challenge
docker exec -ti nginx-letsencypt certbot certonly --manual --preferred-challenges=dns-01  -d {DOMAIN} -d {SUBDOMAIN} -m {EMAIL}

# Cert renew (not working with dns challenge, used certonly command
docker exec nginx-letsencypt certbot renew 

# Crontab example 
docker exec nginx-letsencypt certbot renew  && docker exec {NGINX-CONTAINER} nginx -s reload 

Tag summary

Content type

Image

Digest

Size

57.5 MB

Last updated

over 7 years ago

docker pull nightech/nginx-letsencrypt-proxy