Parameterize admin email address

This commit is contained in:
Erik Stambaugh 2024-01-22 20:05:57 -08:00
parent 2df809bc22
commit 98a52b8f53
3 changed files with 6 additions and 1 deletions

View file

@ -30,4 +30,5 @@ social:
#vapid_private_key:
#vapid_public_key:
admin_email: {{ADMIN_EMAIL}}

View file

@ -57,7 +57,7 @@
# XXX FIXME configure email address
- name: seed a cert if needed
command: "docker run --volume /srv/certbot/etc:/etc/letsencrypt --volume /srv/certbot/www:/var/www/certbot -p 80:80 --rm -t certbot/certbot certonly --agree-tos --email erik@erikstambaugh.com --standalone --noninteractive --cert-name {{domain_name}} --domains {{domain_name}}"
command: "docker run --volume /srv/certbot/etc:/etc/letsencrypt --volume /srv/certbot/www:/var/www/certbot -p 80:80 --rm -t certbot/certbot certonly --agree-tos --email {{admin_email}} --standalone --noninteractive --cert-name {{domain_name}} --domains {{domain_name}}"
args:
chdir: /srv/certbot
creates: "/srv/certbot/etc/live/{{domain_name}}/fullchain.pem"

View file

@ -4,6 +4,10 @@
## Template for configuration.
## The comment preceding any variable is printed as its prompt.
# What is the site admin's email address?
ADMIN_EMAIL =
# Right now AWS is the only option. This is only here for future use.
# AWS: Are we using AWS? 1 means yes, 0 means no (only 1 works right now!)