mirror of
https://github.com/TeamPiped/Piped-Docker
synced 2025-09-05 21:11:15 +02:00
17 lines
443 B
Plaintext
17 lines
443 B
Plaintext
server {
|
|
listen 80;
|
|
server_name PROXY_HOSTNAME;
|
|
|
|
location ~ (/videoplayback|/api/v4/|/api/manifest/) {
|
|
include snippets/ytproxy.conf;
|
|
add_header Cache-Control private always;
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
}
|
|
|
|
location / {
|
|
include snippets/ytproxy.conf;
|
|
add_header Cache-Control "public, max-age=604800";
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
}
|
|
}
|