Skip to content

Commit

Permalink
Create noindex.conf
Browse files Browse the repository at this point in the history
Adds an override for presenting the robots.txt file, especially important for nixos servers.
  • Loading branch information
3mkay authored Jan 24, 2025
1 parent c8e9217 commit 962bfe6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx/noindex.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ddev-generated

# Stop sites being indexed
location /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
}

0 comments on commit 962bfe6

Please sign in to comment.