| | |
| | | $tpl->newTemplate('nginx_vhost.conf.master'); |
| | | |
| | | // IPv4 |
| | | if($data['new']['ip_address'] == '') $data['new']['ip_address'] = '*'; |
| | | |
| | | //* use ip-mapping for web-mirror |
| | | if($data['new']['ip_address'] != '*' && $conf['mirror_server_id'] > 0) { |
| | |
| | | $app->log("Create Let's Encrypt SSL Cert for: $domain", LOGLEVEL_DEBUG); |
| | | |
| | | $success = false; |
| | | $letsencrypt = array_shift( split("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) ); |
| | | $letsencrypt = array_shift( explode("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) ); |
| | | if(is_executable($letsencrypt)) { |
| | | $success = $this->_exec($letsencrypt . " auth --text --agree-tos --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@$domain --domains $lddomain --webroot-path /usr/local/ispconfig/interface/acme"); |
| | | } |