diff --git a/manifests/init.pp b/manifests/init.pp index 28c65d176..57b814d98 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -75,6 +75,7 @@ $proxy_redirect = $nginx::params::nx_proxy_redirect, $proxy_send_timeout = $nginx::params::nx_proxy_send_timeout, $proxy_set_header = $nginx::params::nx_proxy_set_header, + $sendfile = $nginx::params::nx_sendfile, $server_tokens = $nginx::params::nx_server_tokens, $service_ensure = $nginx::params::nx_service_ensure, $service_restart = $nginx::params::nx_service_restart, diff --git a/templates/conf.d/nginx.conf.erb b/templates/conf.d/nginx.conf.erb index 615fcb136..fb492d918 100644 --- a/templates/conf.d/nginx.conf.erb +++ b/templates/conf.d/nginx.conf.erb @@ -23,7 +23,7 @@ http { access_log <%= @http_access_log %>; - sendfile <%= scope.lookupvar('nginx::params::nx_sendfile')%>; + sendfile <%= @sendfile %>; server_tokens <%= @server_tokens %>;