Works on Debian (>=12), raw parameter added

This commit is contained in:
Tobias Herre 2024-02-21 10:36:46 +01:00
parent 1a781d9512
commit a48feb88b2
2 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,14 @@ centos::
"cfg_dir" string => "/etc/nginx";
"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
"service_name" string => "nginx";
debian::
"www_dir" string => "/var/www",unless => isvariable( $(this.promiser) ) ;
"www_user" string => "www-data";
"www_group" string => "www-data";
"cfg_dir" string => "/etc/nginx";
"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
"service_name" string => "nginx";
any::

View File

@ -13,6 +13,7 @@ server {
alias {{vars.nginx.default_html_dir}}/.well-known/acme-challenge/;
try_files $uri $uri/ =404;
}
{{{vars.apache_vhost.site.raw}}}
}
{{/vars.nginx_vhost.site.ssl}}
@ -51,6 +52,7 @@ server {
# ssl_dhparam /etc/nginx/dhparam.pem;
root {{vars.nginx_vhost.site.doc_root}};
{{{vars.apache_vhost.site.raw}}}
}