|
| 1 | +(piped-global) { |
| 2 | + header { |
| 3 | + # disable FLoC tracking |
| 4 | + Permissions-Policy interest-cohort=() |
| 5 | + |
| 6 | + # enable HSTS |
| 7 | + Strict-Transport-Security max-age=31536000; |
| 8 | + |
| 9 | + # keep referrer data off |
| 10 | + Referrer-Policy no-referrer |
| 11 | + } |
| 12 | +} |
| 13 | + |
| 14 | +piped.aosus.link { |
| 15 | + # aosus settings |
| 16 | + respond /robots.txt 200 { |
| 17 | + body "User-agent: * |
| 18 | +Disallow: /" |
| 19 | + } |
| 20 | + header { |
| 21 | + X-Robots-Tag "noindex, noarchive, nofollow, nosnippet" |
| 22 | + X-XSS-Protection "1; mode=block" |
| 23 | + } |
| 24 | + # end aosus settings |
| 25 | + reverse_proxy pipedfrontend:80 |
| 26 | + import piped-global |
| 27 | + encode zstd gzip |
| 28 | +} |
| 29 | + |
| 30 | +api.piped.aosus.link { |
| 31 | + # aosus settings |
| 32 | + respond /robots.txt 200 { |
| 33 | + body "User-agent: * |
| 34 | +Disallow: /" |
| 35 | + } |
| 36 | + header { |
| 37 | + X-Robots-Tag "noindex, noarchive, nofollow, nosnippet" |
| 38 | + X-XSS-Protection "1; mode=block" |
| 39 | + } |
| 40 | + # end aosus settings |
| 41 | + reverse_proxy piped-nginx:80 |
| 42 | + import piped-global |
| 43 | + encode zstd gzip |
| 44 | +} |
| 45 | + |
| 46 | +proxy.piped.aosus.link { |
| 47 | + @ytproxy path /videoplayback* /api/v4/* /api/manifest/* |
| 48 | + import piped-global |
| 49 | + # aosus settings |
| 50 | + respond /robots.txt 200 { |
| 51 | + body "User-agent: * |
| 52 | +Disallow: /" |
| 53 | + } |
| 54 | + header { |
| 55 | + X-Robots-Tag "noindex, noarchive, nofollow, nosnippet" |
| 56 | + X-XSS-Protection "1; mode=block" |
| 57 | + } |
| 58 | + # end aosus settings |
| 59 | + route { |
| 60 | + header @ytproxy { |
| 61 | + Cache-Control private always |
| 62 | + } |
| 63 | + |
| 64 | + header / { |
| 65 | + Cache-Control "public, max-age=604800" |
| 66 | + } |
| 67 | + |
| 68 | + reverse_proxy unix//var/run/ytproxy/actix.sock { |
| 69 | + header_up -CF-Connecting-IP |
| 70 | + header_up -X-Forwarded-For |
| 71 | + header_down -etag |
| 72 | + header_down -alt-svc |
| 73 | + } |
| 74 | + } |
| 75 | + encode zstd gzip |
| 76 | +} |
0 commit comments