mirror of
https://gitea.invidious.io/iv-org/infrastructure.git
synced 2024-08-15 00:53:31 +00:00
Enable indexing on everything except api and redirect
This commit is contained in:
parent
bf9bda494e
commit
6cb2d712d2
1 changed files with 10 additions and 5 deletions
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
(common) {
|
(common) {
|
||||||
encode gzip
|
encode gzip
|
||||||
respond /robots.txt 200 {
|
|
||||||
body "User-agent: *
|
|
||||||
Disallow: /
|
|
||||||
"
|
|
||||||
}
|
|
||||||
log {
|
log {
|
||||||
output file /var/log/caddy/access.log {
|
output file /var/log/caddy/access.log {
|
||||||
roll_size 500mb
|
roll_size 500mb
|
||||||
|
@ -48,6 +43,11 @@ invidio.us {
|
||||||
redirect.invidious.io {
|
redirect.invidious.io {
|
||||||
import common
|
import common
|
||||||
reverse_proxy http://127.0.0.1:8080
|
reverse_proxy http://127.0.0.1:8080
|
||||||
|
respond /robots.txt 200 {
|
||||||
|
body "User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
instances.invidio.us {
|
instances.invidio.us {
|
||||||
|
@ -58,6 +58,11 @@ api.invidious.io {
|
||||||
import common
|
import common
|
||||||
reverse_proxy http://127.0.0.1:3000
|
reverse_proxy http://127.0.0.1:3000
|
||||||
header /static* Cache-Control "max-age=86400"
|
header /static* Cache-Control "max-age=86400"
|
||||||
|
respond /robots.txt 200 {
|
||||||
|
body "User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uptime.invidio.us {
|
uptime.invidio.us {
|
||||||
|
|
Loading…
Reference in a new issue