A dehydrated (ACME client) integration on SME Server
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.
 
 

13 lines
392 B

{
if (($domain->prop('Letsencrypt') || 'enabled') ne 'disabled' && ((${'httpd-e-smith'}{'TCPPort'} || '80') eq $port)){
$OUT .=<<"_EOF";
Alias /.well-known/acme-challenge/ /var/lib/letsencrypt.sh/challenges/
<Location /.well-known/acme-challenge/>
Allow from all
</Location>
_EOF
}
else{
$OUT .= "# Support for Letsencrypt is disabled on this domain\n";
}
}