Add commands to README

This commit is contained in:
askiiart 2023-11-14 10:45:46 -06:00
parent a9f809cab5
commit 918e5edf18
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67

View file

@ -37,3 +37,23 @@ To add a DNS plugin, set the `CERTBOT_DNS_PLUGIN` environment variable to the na
## Building ## Building
1. Run `docker build .` 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
```