feat(sterni/machines/ingeborg): disallow crawling of /tmp
Change-Id: Ic104ff7837c5f728b4e9b33b2ed2ed1ceba8103e Reviewed-on: https://cl.tvl.fyi/c/depot/+/13054 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
5720399a19
commit
1fcd827230
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ in
|
||||||
};
|
};
|
||||||
# TODO(sterni): tmp.sterni.lv
|
# TODO(sterni): tmp.sterni.lv
|
||||||
locations."/tmp/".root = toString /srv/http;
|
locations."/tmp/".root = toString /srv/http;
|
||||||
|
extraConfig = ''
|
||||||
|
location = /robots.txt {
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
return 200 "User-agent: *\nDisallow: /tmp\n";
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue