2022-09-21 17:07:01 +00:00
|
|
|
(global) {
|
2021-09-25 13:44:58 +00:00
|
|
|
header {
|
|
|
|
# disable FLoC tracking
|
|
|
|
Permissions-Policy interest-cohort=()
|
2021-09-18 22:59:50 +00:00
|
|
|
|
2021-09-25 13:44:58 +00:00
|
|
|
# enable HSTS
|
|
|
|
Strict-Transport-Security max-age=31536000;
|
2021-09-18 22:59:50 +00:00
|
|
|
|
2021-09-25 13:44:58 +00:00
|
|
|
# keep referrer data off
|
|
|
|
Referrer-Policy no-referrer
|
2021-09-18 22:59:50 +00:00
|
|
|
|
2021-09-25 13:44:58 +00:00
|
|
|
# prevent for appearing in search engine for private instances (option)
|
|
|
|
#X-Robots-Tag noindex
|
|
|
|
}
|
2021-08-25 07:51:41 +00:00
|
|
|
}
|
|
|
|
|
2022-09-21 17:07:01 +00:00
|
|
|
FRONTEND_HOSTNAME {
|
|
|
|
reverse_proxy pipedfrontend:80
|
|
|
|
import global
|
|
|
|
}
|
|
|
|
|
2021-08-25 07:51:41 +00:00
|
|
|
BACKEND_HOSTNAME {
|
2022-11-03 17:40:46 +00:00
|
|
|
reverse_proxy nginx:80
|
2022-09-21 17:07:01 +00:00
|
|
|
import global
|
2021-08-25 07:51:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PROXY_HOSTNAME {
|
2021-09-25 13:44:58 +00:00
|
|
|
@ytproxy path /videoplayback* /api/v4/* /api/manifest/*
|
2022-09-21 17:07:01 +00:00
|
|
|
import global
|
2021-08-25 07:51:41 +00:00
|
|
|
|
2021-09-25 13:44:58 +00:00
|
|
|
route {
|
|
|
|
header @ytproxy {
|
|
|
|
Cache-Control private always
|
|
|
|
}
|
2021-09-18 22:59:50 +00:00
|
|
|
|
2021-09-25 13:44:58 +00:00
|
|
|
header / {
|
|
|
|
Cache-Control "public, max-age=604800"
|
|
|
|
}
|
2021-09-18 22:59:50 +00:00
|
|
|
|
2022-11-03 17:28:09 +00:00
|
|
|
reverse_proxy unix//var/run/ytproxy/actix.sock {
|
2021-09-25 13:44:58 +00:00
|
|
|
header_up -CF-Connecting-IP
|
|
|
|
header_up -X-Forwarded-For
|
|
|
|
header_down -etag
|
|
|
|
header_down -alt-svc
|
|
|
|
}
|
|
|
|
}
|
2021-08-25 07:51:41 +00:00
|
|
|
}
|