Add commands to README
This commit is contained in:
parent
a9f809cab5
commit
918e5edf18
1 changed files with 20 additions and 0 deletions
20
README.md
20
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue