Ultima attività 1 month ago

Korbs's Avatar Korbs ha revisionato questo gist 10 months ago. Vai alla revisione

1 file changed, 3 insertions, 1 deletion

_README.md

@@ -14,4 +14,6 @@ Set a domain in `.env` that you'll want to generate a certificate for, then run:
14 14 docker compose up
15 15 ```
16 16
17 - Wait a minute and it should generate.
17 + Wait a minute and it should generate.
18 +
19 + > Use the provided `fullchain.pem` and `privkey.pem` files that are generated.

Korbs's Avatar Korbs ha revisionato questo gist 10 months ago. Vai alla revisione

Nessuna modifica

Korbs's Avatar Korbs ha revisionato questo gist 10 months ago. Vai alla revisione

1 file changed, 0 insertions, 0 deletions

README.md rinominato come _README.md

File rinominato senza modifiche

Korbs's Avatar Korbs ha revisionato questo gist 10 months ago. Vai alla revisione

3 files changed, 32 insertions

.env(file creato)

@@ -0,0 +1,4 @@
1 + ACME_EMAIL="alais@example.org"
2 + PORKBUN_API_KEY="pk1_000000000000000000000000000000000000000000000000000000"
3 + PORKBUN_API_SECRET="sk1_000000000000000000000000000000000000000000000000000000"
4 + DOMAIN="example.org"

README.md(file creato)

@@ -0,0 +1,17 @@
1 + On your server, create a folder and add the two files below that are attached to this Gist:
2 + ```
3 + mkdir ~/certbot-porkbun-dns
4 + cd ~/certbot-porkbun-dns
5 + ```
6 +
7 + Pull image:
8 + ```
9 + docker compose pull
10 + ```
11 +
12 + Set a domain in `.env` that you'll want to generate a certificate for, then run:
13 + ```
14 + docker compose up
15 + ```
16 +
17 + Wait a minute and it should generate.

docker-compose.yml(file creato)

@@ -0,0 +1,11 @@
1 + services:
2 + certbot_dns_porkbun:
3 + image: infinityofspace/certbot_dns_porkbun:latest
4 + command: certonly --non-interactive --agree-tos --email ${ACME_EMAIL}
5 + --preferred-challenges dns --authenticator dns-porkbun
6 + --dns-porkbun-key ${PORKBUN_API_KEY} --dns-porkbun-secret
7 + ${PORKBUN_API_SECRET} --dns-porkbun-propagation-seconds 60 -d
8 + "${DOMAIN}"
9 + volumes:
10 + - /etc/letsencrypt:/etc/letsencrypt
11 + - /var/log/letsencrypt:/var/log/letsencrypt
Più nuovi Più vecchi