Add robots.txt for Pagure
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
893bc4a241
commit
0fed6af768
3 changed files with 12 additions and 0 deletions
5
roles/pagure/frontend/files/robots.txt
Normal file
5
roles/pagure/frontend/files/robots.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
User-agent: *
|
||||
Disallow: /api
|
||||
Disallow: /login
|
||||
Disallow: /*/raw
|
||||
Crawl-Delay: 2
|
|
@ -30,6 +30,11 @@
|
|||
tags:
|
||||
- pagure
|
||||
|
||||
- name: Put in robots.txt
|
||||
copy: src=robots.txt dest=/var/www/html/robots.txt
|
||||
tags:
|
||||
- pagure
|
||||
|
||||
|
||||
# Set-up gitolite
|
||||
|
||||
|
|
|
@ -59,6 +59,8 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
|||
ServerName pagure.io
|
||||
{% endif %}
|
||||
|
||||
Alias "/robots.txt" "/var/www/html/robots.txt"
|
||||
|
||||
WSGIScriptAlias / /var/www/pagure.wsgi
|
||||
|
||||
ServerAdmin admin@fedoraproject.org
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue