Skip to content

add mising /download endpoint from companion on the webserver configurations #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/companion-apache2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/companion-caddy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ https://<server_name> {
path /latest_version
path /api/manifest/dash/id/*
path /videoplayback*
path /download*
}

reverse_proxy @companion localhost:8282
Expand Down
8 changes: 8 additions & 0 deletions docs/companion-nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```