LEFT | RIGHT |
(no file at all) | |
1 class nginx::params { | 1 class nginx::params { |
2 $worker_processes = $::processorcount | 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 $ssl_session_cache = on |
11 | 11 |
12 $user = $::operatingsystem ? { | 12 $user = $::operatingsystem ? { |
13 /(?i-mx:debian|ubuntu)/ => 'www-data', | 13 /(?i-mx:debian|ubuntu)/ => 'www-data', |
14 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', | 14 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', |
15 } | 15 } |
16 | 16 |
17 $group = $::operatingsystem ? { | 17 $group = $::operatingsystem ? { |
18 /(?i-mx:debian|ubuntu)/ => 'www-data', | 18 /(?i-mx:debian|ubuntu)/ => 'www-data', |
19 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', | 19 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', |
20 } | 20 } |
21 } | 21 } |
LEFT | RIGHT |