ansible-role-nginx/templates/robots.txt.j2

21 lines
452 B
Plaintext
Raw Normal View History

2021-07-07 14:03:33 +02:00
{% if nginx_robots_disallow_everything %}
User-Agent: *
Disallow: /
{% else %}
{% for ua in nginx_robots_disallowed_useragent_list %}
User-agent: {{ ua }}
Disallow: /
{% 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 %}