{% if nginx_robots_disallow_everything %}
User-Agent: *
Disallow: /
{% else %}
{% for ua in nginx_robots_disallowed_useragent_list %}
User-agent: {{ ua.name }}
Disallow: {{ ua.uri | default('/') }}

{% endfor %}

{% if nginx_robots_disallowed_uris %}
User-agent: *
{% for uri in nginx_robots_disallowed_uris_list %}
Disallow: {{ uri }}
{% endfor %}
{% endif %}

{% if nginx_robots_enable_crawl_delay %}
User-Agent: *
Crawl-Delay: {{ nginx_robots_crawl_delay }}
{% endif %}
{% endif %}

