Parameters test Inspec (files)

Have you tried https://www.inspec.io/docs/reference/resources/nginx_conf/ ?