kopia lustrzana https://github.com/jedie/PyInventory
deny robots via Caddyfile
rodzic
689cd92de3
commit
1e81cc796a
|
@ -1,9 +1,20 @@
|
||||||
# https://caddyserver.com/docs/caddyfile
|
# https://caddyserver.com/docs/caddyfile
|
||||||
{
|
{
|
||||||
admin off
|
admin off
|
||||||
}
|
}
|
||||||
|
|
||||||
{$HOSTNAME} {
|
{$HOSTNAME} {
|
||||||
tls {$LETSENCRYPT_EMAIL}
|
tls {$LETSENCRYPT_EMAIL}
|
||||||
|
|
||||||
|
header {
|
||||||
|
X-Robots-Tag "none"
|
||||||
|
}
|
||||||
|
|
||||||
|
respond /robots.txt 200 {
|
||||||
|
body "User-agent: *
|
||||||
|
Disallow: /"
|
||||||
|
close
|
||||||
|
}
|
||||||
|
|
||||||
reverse_proxy inventory:8000
|
reverse_proxy inventory:8000
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue