move logging after importing def

This commit is contained in:
2024-05-26 13:00:31 +05:30
parent e5ebdf73b1
commit 5d882286d3
2 changed files with 8 additions and 9 deletions

View File

@@ -6,11 +6,6 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg
reverse_proxy :7573 {
header_up Host "invidious.projectsegfau.lt"
}
log {
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
output file /var/log/caddy/ratelimiters.log
format json
}
@pipedproxy {
path /videoplayback
path /videoplayback/*
@@ -31,6 +26,11 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg
import def
header -X-Frame-Options
header -Content-Security-Policy
log {
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
output file /var/log/caddy/ratelimiters.log
format json
}
import torloc invbp
}
piped.projectsegfau.lt proxy.piped.projectsegfau.lt api.piped.projectsegfau.lt {