Skip to content

Commit

Permalink
fix: add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ChelesteWang committed Jun 18, 2021
1 parent 4050b3c commit 4696bbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/lanting-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,10 @@ server {
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html =404;
}

location /robots.txt {
allow all;
log_not_found off;
access_log off;
}
}
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Crawl-delay: 30
User-agent: *
Disallow:

0 comments on commit 4696bbe

Please sign in to comment.