make path to acme.conf global alias file customizable

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-12 11:49:07 +02:00
parent 3b157a8c66
commit 4229d8dda4
14 changed files with 58 additions and 17 deletions

View File

@@ -464,7 +464,8 @@ class nginx extends HttpConfigBase {
if (Settings::Get('system.use_ssl') == '1' && Settings::Get('system.leenabled') == '1')
{
$vhost_content.= "\t".'include /etc/nginx/acme.conf;'."\n";
$acmeConfFilename = Settings::Get('system.letsencryptacmeconf');
$vhost_content.= "\t".'include '.$acmeConfFilename.';'."\n";
}
// if the documentroot is an URL we just redirect