Sha256: 0ecc9c0d09beb96c4ebd552b13842373744a8acc780495dd0a31918623d966c7

Contents?: true

Size: 1.92 KB

Versions: 20

Compression:

Stored size: 1.92 KB

Contents

user <%= scope.lookupvar('nginx::config::nx_daemon_user') %>;
worker_processes <%= @worker_processes %>;

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

events {
  worker_connections <%= @worker_connections -%>;
<% if scope.lookupvar('nginx::params::nx_multi_accept') == 'on' %>multi_accept on;<% end -%>
<% if scope.lookupvar('nginx::params::nx_events_use') %>use <%= scope.lookupvar('nginx::params::nx_events_use')%>;<% end -%>
}

http {
  include       /etc/nginx/mime.types;
  default_type  application/octet-stream;

  access_log  <%= scope.lookupvar('nginx::params::nx_logdir')%>/access.log;

  sendfile    <%= scope.lookupvar('nginx::params::nx_sendfile')%>;

  server_tokens <%= @server_tokens %>;
  <% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on' %>tcp_nopush on;<% end %>

  types_hash_max_size <%= scope.lookupvar('nginx::params::nx_types_hash_max_size')%>;
  types_hash_bucket_size <%= scope.lookupvar('nginx::params::nx_types_hash_bucket_size')%>;

  server_names_hash_bucket_size <%= scope.lookupvar('nginx::params::nx_names_hash_bucket_size')%>;

  keepalive_timeout  <%= scope.lookupvar('nginx::params::nx_keepalive_timeout')%>;
  tcp_nodelay        <%= scope.lookupvar('nginx::params::nx_tcp_nodelay')%>;

<% if scope.lookupvar('nginx::params::nx_gzip') == 'on' %>
  gzip         on;
  gzip_disable "MSIE [1-6]\.(?!.*SV1)";
<% end -%>

<% if @proxy_cache_path -%>
  proxy_cache_path    <%= @proxy_cache_path %> levels=<%= @proxy_cache_levels %> keys_zone=<%= @proxy_cache_keys_zone %> max_size=<%= @proxy_cache_max_size %> inactive=<%= @proxy_cache_inactive %>;
<% end -%>

<% if @http_cfg_append -%><% @http_cfg_append.sort_by{|k,v| k}.each do |key,value| -%>
  <%= key %> <%= value %>;
<% end -%>
<% end -%>

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

}
<% if scope.lookupvar('nginx::mail') %>
mail {
  include /etc/nginx/conf.mail.d/*.conf;
}
<% end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.6.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.5.2 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.5.1 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.5.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.4.1 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.4.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.3.3 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.3.2 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.3.1 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.3.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.2.1 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.2.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.1.0 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.6 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.5 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.4 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.3 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.2 modules/nginx/templates/conf.d/nginx.conf.erb
freighthop-0.0.1 modules/nginx/templates/conf.d/nginx.conf.erb