Browse Source

Explain how to use the script

master
brandon 4 months ago
parent
commit
5526ec886d
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      README.md

+ 17
- 1
README.md View File

@@ -1,3 +1,19 @@
# le-renewcert-dodns

This script is one to accept a list of domains and renew/create the certs for them, and then copy the certs into a designated folder
This script is one to accept a list of domains and renew/create the certs for them, and then copy the certs into a designated folder

## Syntax
*This should be run as root*

./le-renewcert-dodns.sh <filename1> <username> <filename2> <container-name>

filename1 = Absolute path of file containing a list of domains to renew/create certs for
username = the username used for docker-compose file stuffs
filename2 = Absolute path of the .ini file containing the digitalocean API key to be used for the DNS challenge
container-name = the name of the container in the docker-compose.yml file to be restarted to use the newly created certs

## Usage

This script expects certbot and docker-compose to already be installed, the docker-compose.yml file to be in the top level of the docker-compose usernames home folder, the certs you wish to use for your nginx-proxy to be going in the docker-compose user's `certs` folder.

See [here](https://hostlaunch.io/docs/how-to-get-a-digitalocean-api-key/) for how to get your API key and [here](https://certbot-dns-digitalocean.readthedocs.io/en/stable/) for how to create the .ini file it'll be stored in as well as the permissions required to be applied on that file.

Loading…
Cancel
Save