Script for creating VirtualHosts and generate Let's Encrypt certificates.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
446 B

DOMAINS="{{ domains }}"
_UNAME="{{ uname }}"
_DIR="{{ le_certificate_folder }}/{{ uname }}"
KEY="$_DIR/$_UNAME.key"
CRT="$_DIR/$_UNAME.crt"
CSR="$_DIR/$_UNAME.csr"
CHAINED="$_DIR/$_UNAME.chained"
INTERMEDIATE="$_DIR/$_UNAME.intermediate"
ACME_KEY="$_DIR/$_UNAME.acme.key"
ACME_CHALLENGE_ROOT=~acme/challenges
ACME_CHALLENGE_URL=/.well-known/acme-challenge
ACME_CHALLENGE_DIR="${ACME_CHALLENGE_ROOT}/${ACME_CHALLENGE_URL}"
RESTART_SERVICE=nginx