SSL for nginx apps vhost
short description
The template for the nginx apps vhosts is not populated correctly, when ssl is enabled. This is only working for apache. One has to edit the vhosts file manually.
correct behaviour
The apps vhosts should work with ssl out of the box when enabled.
environment
Server OS: centos Server OS version: 8.3 ISPConfig version: 3.2.2
proposed fix
The proposed fix is attached. I cant open a merge request, since it tells me, that I've reached my limit (seems to be at 0) when trying to fork. I've edited the lines 2714 to 2715 (based on d1652d6b)
Old:
$content = str_replace('{ssl_on}', '', $content);
$content = str_replace('{ssl_comment}', '#', $content);
New:
if(is_file($install_dir.'/interface/ssl/ispserver.crt') && is_file($install_dir.'/interface/ssl/ispserver.key')) {
$content = str_replace('{ssl_on}', 'ssl', $content);
$content = str_replace('{ssl_comment}', '', $content);
} else {
$content = str_replace('{ssl_on}', '', $content);
$content = str_replace('{ssl_comment}', '#', $content);
}