Currently, CKAN's robots.txt is a static file and hence can only be changed in CKAN itself. However, sometimes one wants to change robots.txt for a specific extension (for example to specify the location of the sitemap generated by ckanext-sitemap) or for a specific installation.
I therefore suggest to dynamically create robots.txt from a Jinja2 template.
Currently, CKAN's
robots.txt
is a static file and hence can only be changed in CKAN itself. However, sometimes one wants to changerobots.txt
for a specific extension (for example to specify the location of the sitemap generated by ckanext-sitemap) or for a specific installation.I therefore suggest to dynamically create
robots.txt
from a Jinja2 template.