Skip to content

Instantly share code, notes, and snippets.

@jowrjowr
Created December 14, 2014 03:00
Show Gist options
  • Select an option

  • Save jowrjowr/493d78611dfa9fe1b8d7 to your computer and use it in GitHub Desktop.

Select an option

Save jowrjowr/493d78611dfa9fe1b8d7 to your computer and use it in GitHub Desktop.
class { 'nginx::service': }
class { 'nginx::config':
http_cfg_append => {
'log_format' => 'proxylog \'$http_x_real_ip - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"\'',
'fastcgi_cache_path' => '/var/lib/nginx/tmp/fastcgi/ levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=1h',
},
gzip => true,
names_hash_max_size => '2048',
names_hash_bucket_size => '256',
confd_purge => true,
vhost_purge => true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment