OLD | NEW |
1 class nginx::params { | 1 class nginx::params { |
2 $worker_processes = 2 | 2 $worker_processes = 2 |
3 $worker_connections = 1024 | 3 $worker_connections = 1024 |
4 $multi_accept = off | 4 $multi_accept = off |
5 $worker_rlimit_nofile = 30000 | 5 $worker_rlimit_nofile = 30000 |
6 $sendfile = on | 6 $sendfile = on |
7 $keepalive_timeout = 15 | 7 $keepalive_timeout = 15 |
8 $tcp_nodelay = on | 8 $tcp_nodelay = on |
9 $gzip = on | 9 $gzip = on |
| 10 $ssl_session_cache = on |
10 | 11 |
11 $user = $::operatingsystem ? { | 12 $user = $::operatingsystem ? { |
12 /(?i-mx:debian|ubuntu)/ => 'www-data', | 13 /(?i-mx:debian|ubuntu)/ => 'www-data', |
13 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', | 14 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', |
14 } | 15 } |
15 | 16 |
16 $group = $::operatingsystem ? { | 17 $group = $::operatingsystem ? { |
17 /(?i-mx:debian|ubuntu)/ => 'www-data', | 18 /(?i-mx:debian|ubuntu)/ => 'www-data', |
18 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', | 19 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', |
19 } | 20 } |
20 } | 21 } |
OLD | NEW |