Skip to content

Commit 92d7d12

Browse files
author
Kristan Kenney
committed
Enable signing of mail + web domains
1 parent 8f11d99 commit 92d7d12

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web/edit/web/index.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,18 @@
446446
}
447447
}
448448

449+
// Add Lets Encrypt Mail domain support
450+
if ((!empty($_POST['v_ssl'])) && ( $v_letsencrypt == 'no' ) && (!empty($_POST['v_letsencrypt'])) && empty($_SESSION['error_msg'])) {
451+
$l_aliases = str_replace("\n", ',', $v_aliases);
452+
exec (HESTIA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." ' ' 'yes'", $output, $return_var);
453+
check_return_code($return_var,$output);
454+
unset($output);
455+
$v_letsencrypt = 'yes';
456+
$v_ssl = 'yes';
457+
$restart_web = 'yes';
458+
$restart_proxy = 'yes';
459+
}
460+
449461
// Add Force SSL
450462
if ((!empty($_POST['v_ssl_forcessl'])) && (!empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
451463
exec (HESTIA_CMD."v-add-web-domain-ssl-force ".$user." ".$v_domain, $output, $return_var);

0 commit comments

Comments
 (0)