<% if node[:nginx][:access_log] -%>
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
<% if node[:nginx][:access_log] -%>
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
ssl_ciphers <%= node[:ssl][:openssl_ciphers] -%>;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 30m;
ssl_ciphers <%= node[:ssl][:openssl_ciphers] -%>;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 30m;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
resolver <%= @resolvers.join(" ") %>;
resolver_timeout 5s;
<% if node['nginx']['cache']['fastcgi']['enable'] -%>
ssl_dhparam /etc/ssl/certs/dhparam.pem;
resolver <%= @resolvers.join(" ") %>;
resolver_timeout 5s;
<% if node['nginx']['cache']['fastcgi']['enable'] -%>