```ruby
include_recipe 'nginx_server::default'

nginx_server_vhost 'yumserver' do
  listen [{'ipaddress': '0.0.0.0'}]
  server_name [node['hostname'], node['fqdn']]
  root node['yumserver']['basepath']
  config ({
    'location /' => {
      'autoindex' => 'on'
    }
  })
end
```

Fix hash syntax in nginx syntax
user
```ruby
include_recipe 'nginx_server::default'

nginx_server_vhost 'yumserver' do
  listen [{'ipaddress' => '0.0.0.0'}]
  server_name [node['hostname'], node['fqdn']]
  root node['yumserver']['basepath']
  config ({
    'location /' => {
      'autoindex' => 'on'
    }
  })
end
```
assistant