mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
47 lines
827 B
Caddyfile
47 lines
827 B
Caddyfile
(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
|
|
}
|
|
}
|
|
|
|
FRONTEND_HOSTNAME {
|
|
reverse_proxy piped-frontend:80
|
|
import global
|
|
}
|
|
|
|
BACKEND_HOSTNAME {
|
|
reverse_proxy nginx:80
|
|
import global
|
|
}
|
|
|
|
PROXY_HOSTNAME {
|
|
@ytproxy path /videoplayback* /api/v4/* /api/manifest/*
|
|
import global
|
|
|
|
route {
|
|
header @ytproxy {
|
|
Cache-Control private always
|
|
}
|
|
|
|
header / {
|
|
Cache-Control "public, max-age=604800"
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|