Piped-Docker/template/Caddyfile

48 lines
827 B
Caddyfile
Raw Normal View History

2022-09-21 22:37:01 +05:30
(global) {
header {
# disable FLoC tracking
Permissions-Policy interest-cohort=()
# enable HSTS
Strict-Transport-Security max-age=31536000;
# keep referrer data off
Referrer-Policy no-referrer
# prevent for appearing in search engine for private instances (option)
#X-Robots-Tag noindex
}
}
2022-09-21 22:37:01 +05:30
FRONTEND_HOSTNAME {
2024-06-20 23:42:08 +05:30
reverse_proxy piped-frontend:80
2022-09-21 22:37:01 +05:30
import global
}
BACKEND_HOSTNAME {
2022-11-03 23:10:46 +05:30
reverse_proxy nginx:80
2022-09-21 22:37:01 +05:30
import global
}
PROXY_HOSTNAME {
@ytproxy path /videoplayback* /api/v4/* /api/manifest/*
2022-09-21 22:37:01 +05:30
import global
route {
header @ytproxy {
Cache-Control private always
}
header / {
Cache-Control "public, max-age=604800"
}
2022-11-03 22:58:09 +05:30
reverse_proxy unix//var/run/ytproxy/actix.sock {
header_up -CF-Connecting-IP
header_up -X-Forwarded-For
header_down -etag
header_down -alt-svc
}
}
}