user                    <%= @daemon_user %>;
worker_processes        <%= @worker_processes %>;
worker_rlimit_nofile    <%= @worker_rlimit_nofile %>;
error_log               <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log;
pid                     <%= scope.lookupvar('nginx::params::nx_pid')%>;

events {
  worker_connections        <%= @worker_connections %>;
}

http {
  include                   /etc/nginx/mime.types;
  default_type              application/octet-stream;
  server_tokens             <%= @server_tokens %>;

  sendfile                  <%= scope.lookupvar('nginx::params::nx_sendfile')%>;
  <% if scope.lookupvar('nginx::params::nx_gzip') == 'on'%>
  gzip                      on;
  <% end %>
  client_max_body_size      <%= @client_max_body_size %>;
  keepalive_timeout         <%= @keepalive_timeout %>;
  <% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on'%>
  tcp_nopush                on;
  <% end %>
  client_body_timeout       <%= @client_body_timeout %>;
  client_header_timeout     <%= @client_header_timeout %>;
  send_timeout              <%= @send_timeout %>;
  <% if @access_log == 'on'%>
  access_log                <%= scope.lookupvar('nginx::params::nx_logdir')%>/access.log;
  <% else %>
  access_log                off;
  <% end -%>

  include /etc/nginx/conf.d/*.conf;
}

user                    <%= @daemon_user %>;
worker_processes        <%= @worker_processes %>;
worker_rlimit_nofile    <%= @worker_rlimit_nofile %>;
error_log               <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log;
pid                     <%= scope.lookupvar('nginx::params::nx_pid')%>;

events {
  worker_connections        <%= @worker_connections %>;
}

http {
  include                   /etc/nginx/mime.types;
  default_type              application/octet-stream;
  charset                   utf-8;
  server_tokens             <%= @server_tokens %>;

  sendfile                  <%= scope.lookupvar('nginx::params::nx_sendfile')%>;
  <% if scope.lookupvar('nginx::params::nx_gzip') == 'on'%>
  gzip                      on;
  <% end %>
  client_max_body_size      <%= @client_max_body_size %>;
  keepalive_timeout         <%= @keepalive_timeout %>;
  <% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on'%>
  tcp_nopush                on;
  <% end %>
  client_body_timeout       <%= @client_body_timeout %>;
  client_header_timeout     <%= @client_header_timeout %>;
  send_timeout              <%= @send_timeout %>;
  <% if @access_log == 'on'%>
  access_log                <%= scope.lookupvar('nginx::params::nx_logdir')%>/access.log;
  <% else %>
  access_log                off;
  <% end -%>

  include /etc/nginx/conf.d/*.conf;
}

Set nginx' default charset to utf-8
Set nginx' default charset to utf-8
