add mising /download endpoint from companion on the webserver configurations

Required for download to work on invidious due to commit: 8fd0b82c38
This commit is contained in:
Fijxu 2025-05-08 12:19:13 -04:00
parent ec79d88477
commit f6bdf68e5e
No known key found for this signature in database
GPG key ID: 32C1DDF333EDA6A4
3 changed files with 13 additions and 0 deletions

View file

@ -18,6 +18,8 @@
ProxyPassReverse /api/manifest/dash/id/ http://127.0.0.1:8282/
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
ProxyPassReverse /videoplayback http://127.0.0.1:8282/
ProxyPass /download http://127.0.0.1:8282/ nocanon
ProxyPassReverse /download http://127.0.0.1:8282/
AllowEncodedSlashes on
@ -68,6 +70,8 @@ To make the VirtualHost config below actually work, you should as well:
ProxyPassReverse /api/manifest/dash/id/ http://127.0.0.1:8282/
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
ProxyPassReverse /videoplayback http://127.0.0.1:8282/
ProxyPass /download http://127.0.0.1:8282/ nocanon
ProxyPassReverse /download http://127.0.0.1:8282/
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes On

View file

@ -10,6 +10,7 @@ https://<server_name> {
path /latest_version
path /api/manifest/dash/id/*
path /videoplayback*
path /download*
}
reverse_proxy @companion localhost:8282

View file

@ -50,6 +50,14 @@ server {
proxy_set_header Connection ""; # to keep alive
}
location /download {
proxy_pass http://127.0.0.1:8282;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host; # so Invidious companion knows domain
proxy_http_version 1.1; # to keep alive
proxy_set_header Connection ""; # to keep alive
}
if ($https = '') { return 301 https://$host$request_uri; } # if not connected to HTTPS, perma-redirect to HTTPS
}
```