From dfa835131e67c2c0d1e093b812e7a14741dd36fa Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 19 Feb 2025 21:30:46 +0800 Subject: [PATCH] Aggiorna README.md --- README.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5ad5f4a..8701d96 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,40 @@ +# Let's Encrypt for DuckDNS e Dynu + +compilare l'immagine + +```bash +sudo docker build . -t duckdns_dynu/letsencrypt +``` +settare tutti i parametri del docker-compose + +```docker compose +services: + letsencrypt: + image: duckdns_dynu/letsencrypt + container_name: duckdns_dynu_letsencrypt + volumes: + - /etc/letsencrypt:/etc/letsencrypt + environment: + - DUCKDNS_TOKEN=0f26cf40-9ded-48b6-8612-5830327aac90 + - DUCKDNS_DOMAIN=patachina.duckdns.org + - DUCKDNS_DOMAIN2=patachina2.duckdns.org + - DYNU_DOMAIN=patachina.casacam.net + - DYNU_DOMAIN2=patachina2.casacam.net + - DYNU_API_KEY=3465V4Va6732ZWf7b5V55gYg6ZU55W4Y + - EMAIL=fabio.micheluz@gmail.com + - LETSENCRYPT_DOMAIN= #optional + - LETSENCRYPT_WILDCARD=true #optional + - LETSENCRYPT_EMAIL= #optional + - TESTING=false #optional + - UID=0 #optional + - GID=0 #optional + - DUCKDNS_DELAY= #optional + restart: unless-stopped +``` + # Let's Encrypt for Duck DNS -[![Build Status](https://github.com/maksimstojkovic/docker-letsencrypt/actions/workflows/docker-build.yml/badge.svg)](https://github.com/maksimstojkovic/docker-letsencrypt) -[![Docker Pulls](https://img.shields.io/docker/pulls/maksimstojkovic/letsencrypt)](https://hub.docker.com/r/maksimstojkovic/letsencrypt) -[![Docker Stars](https://img.shields.io/docker/stars/maksimstojkovic/letsencrypt)](https://hub.docker.com/r/maksimstojkovic/letsencrypt) -[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/maksimstojkovic/letsencrypt)](https://hub.docker.com/r/maksimstojkovic/letsencrypt) -[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/maksimstojkovic/letsencrypt)](https://hub.docker.com/r/maksimstojkovic/letsencrypt) +github originale (https://github.com/maksimstojkovic/docker-letsencrypt) Automatically generates Let's Encrypt certificates using a lightweight Docker container without requiring any ports to be exposed for DNS challenges. @@ -37,3 +67,24 @@ Automatically generates Let's Encrypt certificates using a lightweight Docker co * `:/etc/letsencrypt`: A named or host volume which allows SSL certificates to persist and be accessed by other containers **Note:** To use the `` host volume in another container, mount it as read-only for those containers. The `` host volume should be read-write enabled for the Letsencrypt container. + +# Let's Encrypt for Dynu + +git originale (https://github.com/aney1/certbot-domainvalidation-dynu) + +This repository contains everything needed to create and renew LetsEncrypt certificates (incl. wildcard certificates) on Dynu (https://www.dynu.com/). +This should work on every machine that can run docker (I'm using it on a QNAP NAS). +If you already have certbot installed you can also just use the scripts in the scripts folder, without docker. + +## Usage with docker-compose: +You will need Docker and Docker-Compose: + +https://docs.docker.com/install/ +https://docs.docker.com/compose/install/ + +docker-compose -f /certbot/docker-compose.yml up + +Cronjob to run it twice daily (like recomended by Certbot, certificates are only renewed when needed): + +0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && docker-compose -f /certbot/docker-compose.yml up +