Skip to content

Instantly share code, notes, and snippets.

@mhoran
Last active April 16, 2019 14:35
Show Gist options
  • Save mhoran/2339e2d4a47994ff552f5705228dc81d to your computer and use it in GitHub Desktop.
Save mhoran/2339e2d4a47994ff552f5705228dc81d to your computer and use it in GitHub Desktop.
Configuration for lego peroidic script
# generate two certificates
weekly_lego_certificates="one two"
# account for the certificates
weekly_lego_account="matt@matthoran.com"
# default flags if not overridden per certificate
weekly_lego_global_flags="--path /usr/local/etc/ssl/lego --email ${weekly_lego_account} --http --http.webroot /usr/local/www/acme"
weekly_lego_renew_flags="--days 30"
#
# certificate one
#
# script to source before running lego
weekly_lego_certificate_one_environment="/usr/local/etc/acme/certificate_one.sh"
# override default flags
weekly_lego_certificate_one_global_flags="--path /usr/local/etc/ssl/lego --email matt@matthoran.com --dns route53"
# add --domains flag to flags for this certificate for each domain in list
weekly_lego_certificate_one_domains="matthoran.com www.matthoran.com friction.matthoran.com"
#
# certificate two
#
# uses default flags, adds --domains flags for each domain in list
weekly_lego_certificate_two_domains="wherestheparty.at www.wherestheparty.at"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment