add robots.txt
This commit is contained in:
parent
e2f8f3a692
commit
a2453054fd
1 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy unix/${socket}";
|
||||
caddy.virtualHosts."${domain}".extraConfig = ''
|
||||
respond /robots.txt <<EOF
|
||||
User-agent: *
|
||||
Disallow: /*/*/archive/
|
||||
EOF 200
|
||||
reverse_proxy unix/${socket}
|
||||
'';
|
||||
};
|
||||
|
||||
systemd.sockets.forgejo = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue