2021-08-25 13:21:41 +05:30
|
|
|
{
|
2021-09-19 04:29:50 +05:30
|
|
|
servers :443 {
|
|
|
|
protocol {
|
|
|
|
experimental_http3
|
|
|
|
}
|
|
|
|
}
|
2021-08-25 13:21:41 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
FRONTEND_HOSTNAME {
|
2021-09-19 04:29:50 +05:30
|
|
|
reverse_proxy pipedfrontend:80
|
|
|
|
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
|
|
|
|
}
|
2021-08-25 13:21:41 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
BACKEND_HOSTNAME {
|
2021-09-19 04:29:50 +05:30
|
|
|
reverse_proxy varnish:80
|
|
|
|
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
|
|
|
|
}
|
2021-08-25 13:21:41 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
PROXY_HOSTNAME {
|
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
@ytproxy path /videoplayback* /api/v4/* /api/manifest/*
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
@optionscall {
|
|
|
|
method OPTIONS
|
|
|
|
}
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
header {
|
|
|
|
Access-Control-Allow-Origin *
|
|
|
|
Access-Control-Allow-Headers *
|
|
|
|
|
|
|
|
# disable FLoC tracking
|
|
|
|
Permissions-Policy interest-cohort=()
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
# enable HSTS
|
|
|
|
Strict-Transport-Security max-age=31536000;
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
# keep referrer data off
|
|
|
|
Referrer-Policy no-referrer
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
# prevent for appearing in search engine for private instances (option)
|
|
|
|
#X-Robots-Tag noindex
|
2021-08-25 13:21:41 +05:30
|
|
|
}
|
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
route {
|
|
|
|
|
|
|
|
header @ytproxy {
|
|
|
|
Cache-Control private always
|
|
|
|
}
|
|
|
|
|
|
|
|
header / {
|
|
|
|
Cache-Control "public, max-age=604800"
|
|
|
|
}
|
|
|
|
|
|
|
|
respond @optionscall 200
|
2021-08-25 13:21:41 +05:30
|
|
|
|
2021-09-19 04:29:50 +05:30
|
|
|
reverse_proxy unix//var/run/ytproxy/http-proxy.sock {
|
|
|
|
header_up -CF-Connecting-IP
|
|
|
|
header_up -X-Forwarded-For
|
|
|
|
header_down -Access-Control-Allow-Origin
|
|
|
|
header_down -etag
|
|
|
|
header_down -alt-svc
|
|
|
|
}
|
2021-08-25 13:21:41 +05:30
|
|
|
}
|
|
|
|
}
|