From 918e5edf1807235d08833cad2042f0df3fe1eab2 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 14 Nov 2023 10:45:46 -0600 Subject: [PATCH] Add commands to README --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index cd2363d..03bd583 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,23 @@ To add a DNS plugin, set the `CERTBOT_DNS_PLUGIN` environment variable to the na ## Building 1. Run `docker build .` + +## Some commands + +Check if nginx config is valid: + +```bash +docker run --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx nginx -t +``` + +First generate certs (from nginx configs): + +```bash +docker run -it --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot --nginx +``` + +Renew certs: + +```bash +docker run -it --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot renew +```