Works on Debian (>=12), raw parameter added
This commit is contained in:
parent
1a781d9512
commit
a48feb88b2
8
nginx.cf
8
nginx.cf
|
@ -13,6 +13,14 @@ centos::
|
||||||
"cfg_dir" string => "/etc/nginx";
|
"cfg_dir" string => "/etc/nginx";
|
||||||
"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
|
"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
|
||||||
"service_name" string => "nginx";
|
"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::
|
any::
|
||||||
|
|
|
@ -13,6 +13,7 @@ server {
|
||||||
alias {{vars.nginx.default_html_dir}}/.well-known/acme-challenge/;
|
alias {{vars.nginx.default_html_dir}}/.well-known/acme-challenge/;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
{{{vars.apache_vhost.site.raw}}}
|
||||||
}
|
}
|
||||||
{{/vars.nginx_vhost.site.ssl}}
|
{{/vars.nginx_vhost.site.ssl}}
|
||||||
|
|
||||||
|
@ -51,6 +52,7 @@ server {
|
||||||
# ssl_dhparam /etc/nginx/dhparam.pem;
|
# ssl_dhparam /etc/nginx/dhparam.pem;
|
||||||
|
|
||||||
root {{vars.nginx_vhost.site.doc_root}};
|
root {{vars.nginx_vhost.site.doc_root}};
|
||||||
|
{{{vars.apache_vhost.site.raw}}}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue