Skip to content

Commit

Permalink
[infra] fix: allow bots to use /preview/
Browse files Browse the repository at this point in the history
  • Loading branch information
GresilleSiffle committed Mar 27, 2024
1 parent 6bb3111 commit 652a7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/ansible/roles/django/templates/tournesol.j2
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ server {

location = /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
return 200 "User-agent: *\nDisallow: /\nAllow: /preview/\nDisallow: /preview/w/index.php\n";
}

location /static/ {
Expand Down

0 comments on commit 652a7ad

Please sign in to comment.