2021-10-26 20:17:13 +00:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
(common) {
|
|
|
|
encode gzip
|
|
|
|
log {
|
|
|
|
output file /var/log/caddy/access.log {
|
|
|
|
roll_size 500mb
|
|
|
|
roll_keep 5
|
|
|
|
}
|
|
|
|
format filter {
|
|
|
|
wrap json
|
|
|
|
fields {
|
|
|
|
common_log delete
|
|
|
|
request>remote_addr ip_mask {
|
|
|
|
ipv4 24
|
|
|
|
ipv6 32
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-01 19:54:15 +00:00
|
|
|
(block-robots) {
|
|
|
|
respond /robots.txt 200 {
|
|
|
|
body "User-agent: *
|
|
|
|
Disallow: /
|
|
|
|
"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-26 20:17:13 +00:00
|
|
|
www.invidio.us {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://invidious.io{uri}
|
|
|
|
}
|
2021-12-09 18:11:50 +00:00
|
|
|
invidious.io {
|
|
|
|
import common
|
|
|
|
reverse_proxy http://127.0.0.1:8081
|
|
|
|
}
|
|
|
|
|
2021-10-26 20:17:13 +00:00
|
|
|
git.invidious.io {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://github.com/iv-org/invidious
|
|
|
|
}
|
|
|
|
|
|
|
|
invidio.us {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://redirect.invidious.io{uri}
|
|
|
|
header /api* content-type "application/json"
|
|
|
|
respond /api* "{\"error\":\"This server no longer hosts the Invidious API.\"}" 410
|
|
|
|
}
|
|
|
|
redirect.invidious.io {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
reverse_proxy http://127.0.0.1:8080
|
|
|
|
}
|
|
|
|
|
|
|
|
instances.invidio.us {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://api.invidious.io{uri}
|
|
|
|
}
|
|
|
|
api.invidious.io {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
reverse_proxy http://127.0.0.1:3000
|
|
|
|
header /static* Cache-Control "max-age=86400"
|
|
|
|
}
|
|
|
|
|
|
|
|
uptime.invidio.us {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://stats.uptimerobot.com/89VnzSKAn{uri}
|
|
|
|
}
|
|
|
|
uptime.invidious.io {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-10-26 20:17:13 +00:00
|
|
|
redir https://stats.uptimerobot.com/89VnzSKAn{uri}
|
|
|
|
}
|
|
|
|
|
|
|
|
#docs.invidious.io {
|
|
|
|
# import common
|
|
|
|
# reverse_proxy http://127.0.0.1:3001
|
|
|
|
#}
|
2021-12-09 17:56:47 +00:00
|
|
|
|
|
|
|
instances.invidious.io {
|
|
|
|
import common
|
|
|
|
redir https://docs.invidious.io/Invidious-Instances.md
|
|
|
|
}
|
|
|
|
|
|
|
|
todo.invidious.io {
|
|
|
|
import common
|
2022-02-01 19:54:15 +00:00
|
|
|
import block-robots
|
2021-12-09 17:56:47 +00:00
|
|
|
redir https://github.com/orgs/iv-org/projects
|
|
|
|
}
|