|
180 | 180 | end |
181 | 181 | end |
182 | 182 |
|
183 | | -control 'nginx-07' do |
184 | | - impact 1.0 |
185 | | - title 'Control timeouts to improve performance' |
186 | | - desc 'Control timeouts to improve server performance and cut clients.' |
187 | | - describe parse_config_file(nginx_conf, options) do |
188 | | - its('keepalive_timeout') { should eq KEEPALIVE_TIMEOUT } |
189 | | - end |
190 | | - describe parse_config_file(nginx_hardening, options) do |
191 | | - its('client_body_timeout') { should eq CLIENT_BODY_TIMEOUT } |
192 | | - end |
193 | | - describe parse_config_file(nginx_hardening, options) do |
194 | | - its('client_header_timeout') { should eq CLIENT_HEADER_TIMEOUT } |
195 | | - end |
196 | | - describe parse_config_file(nginx_hardening, options) do |
197 | | - its('send_timeout') { should eq SEND_TIMEOUT } |
198 | | - end |
199 | | -end |
200 | | - |
201 | 183 | control 'nginx-07' do |
202 | 184 | impact 1.0 |
203 | 185 | title 'Control simultaneous connections' |
|
298 | 280 | its('content') { should match(/^\s*set_cookie_flag * HttpOnly secure;$/) } |
299 | 281 | end |
300 | 282 | end |
| 283 | + |
| 284 | +control 'nginx-17' do |
| 285 | + impact 1.0 |
| 286 | + title 'Control timeouts to improve performance' |
| 287 | + desc 'Control timeouts to improve server performance and cut clients.' |
| 288 | + describe parse_config_file(nginx_conf, options) do |
| 289 | + its('keepalive_timeout') { should eq KEEPALIVE_TIMEOUT } |
| 290 | + end |
| 291 | + describe parse_config_file(nginx_hardening, options) do |
| 292 | + its('client_body_timeout') { should eq CLIENT_BODY_TIMEOUT } |
| 293 | + end |
| 294 | + describe parse_config_file(nginx_hardening, options) do |
| 295 | + its('client_header_timeout') { should eq CLIENT_HEADER_TIMEOUT } |
| 296 | + end |
| 297 | + describe parse_config_file(nginx_hardening, options) do |
| 298 | + its('send_timeout') { should eq SEND_TIMEOUT } |
| 299 | + end |
| 300 | +end |
0 commit comments