tyo0/redlib: block search indexing
This commit is contained in:
parent
36288c8958
commit
b3377dab48
1 changed files with 12 additions and 4 deletions
|
@ -13,9 +13,17 @@ in
|
|||
match = lib.singleton {
|
||||
host = [ "reddit.ny4.dev" ];
|
||||
};
|
||||
handle = lib.singleton {
|
||||
handle = [
|
||||
{
|
||||
# Google's indexing caused a DoS with 800k requests...
|
||||
# https://developers.google.com/search/docs/crawling-indexing/block-indexing
|
||||
handler = "headers";
|
||||
response.set."X-Robots-Tag" = [ "noindex" ];
|
||||
}
|
||||
{
|
||||
handler = "reverse_proxy";
|
||||
upstreams = [ { dial = "localhost:${toString port}"; } ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue