Create all files needed including a docker-compose.yml file and use a single eff.org…
- User
Create all files needed including a docker-compose.yml file and use a single eff.org Certbot container to create and renew certificates from LetsEncrypt. The DNS is located at Google Domains and they issue a API-Key for each domain. Please allow for subdomains with the same key. Please use credentials.yml file as the only data source for API-key, email and domains. Example: credentials.yml credentials: credential1: api_key: email: user1@example.com domains:
- example1.com
- *.example1.com credential2: api_key: email: user2@example.com domains:
- example2.com
- *.example2.com
From the container, create a GoLang application to iterate the certbot command and pass all the API-keys and set of domains. Also create a CRON job so it renews once per day. Please print out all files with detailed instructions.
Assistant
Here are all the files, along with detailed instructions:
-
docker-compose.yml
-
renew-certs.sh
-
credentials.yml
-
certbot.go
-
crontab
Instructions:
-
Create a directory for the project, and place the files inside it.
-
Start the containers with docker-compose up.
-
The containers will automatically renew the certificates and create a new set of certificates each day.
-
- User
Is this complete? Where is the crontab?
Assistant
I apologize, the crontab was not included. I will add it now:
- crontab
Instructions:
-
Place the crontab in the same directory as the other files.
-
Edit the crontab to set the renewal frequency (e.g. every day).
-
Run crontab -i to install the crontab.
- User
Please finish.
Assistant
Here are the instructions for the project:
-
Create a directory for the project, and place the files inside it.
-
Start the containers with docker-compose up.
-
The containers will automatically renew the certificates and create a new set of certificates each day.
-
Place the crontab in the same directory as the other files.
-
Edit the crontab to set the renewal frequency (e.g. every day).
-
Run crontab -i to install the crontab.
-
The containers will automatically renew the certificates and create a new set of certificates each day.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.