chore(sterni/code.sterni.lv): deny indexing
All repositories under code.sterni.lv are mirrors, so there's no value in AI startups endlessly crawling the nixpkgs git history on code.sterni.lv… Change-Id: Iaac296315f325ced3cfd0852ae1d8d3f3815ea5b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12803 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
bbfffa3fdd
commit
0a6b387738
1 changed files with 8 additions and 0 deletions
|
@ -118,6 +118,8 @@ let
|
||||||
enable-blame=1
|
enable-blame=1
|
||||||
enable-commit-graph=1
|
enable-commit-graph=1
|
||||||
|
|
||||||
|
robots=noindex,nofollow
|
||||||
|
|
||||||
root-title=code.sterni.lv
|
root-title=code.sterni.lv
|
||||||
root-desc=
|
root-desc=
|
||||||
css=/cgit.css
|
css=/cgit.css
|
||||||
|
@ -191,6 +193,12 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
try_files $uri @cgit;
|
try_files $uri @cgit;
|
||||||
|
|
||||||
|
# Note this overrides the default robots.txt cgit-pink ships
|
||||||
|
location = /robots.txt {
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
return 200 "User-agent: *\nDisallow: /\n";
|
||||||
|
}
|
||||||
|
|
||||||
location @cgit {
|
location @cgit {
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME ${pkgs.cgit-pink}/cgit/cgit.cgi;
|
fastcgi_param SCRIPT_FILENAME ${pkgs.cgit-pink}/cgit/cgit.cgi;
|
||||||
|
|
Loading…
Reference in a new issue