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
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This will create a CRON job that runs the certbot.go file once per day at midnight. The certbot.go file should be in the same directory as the credentials.yml file.
Note: You will need to modify the certbot.conf file to use the API keys and email addresses from the credentials.yml file.