mirror of
https://github.com/iv-org/documentation.git
synced 2025-05-21 08:00:29 -04:00
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:
parent
ec79d88477
commit
f6bdf68e5e
3 changed files with 13 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
||||||
ProxyPassReverse /api/manifest/dash/id/ http://127.0.0.1:8282/
|
ProxyPassReverse /api/manifest/dash/id/ http://127.0.0.1:8282/
|
||||||
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
|
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
|
||||||
ProxyPassReverse /videoplayback http://127.0.0.1:8282/
|
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
|
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/
|
ProxyPassReverse /api/manifest/dash/id/ http://127.0.0.1:8282/
|
||||||
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
|
ProxyPass /videoplayback http://127.0.0.1:8282/ nocanon
|
||||||
ProxyPassReverse /videoplayback http://127.0.0.1:8282/
|
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
|
ProxyPreserveHost On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
AllowEncodedSlashes On
|
AllowEncodedSlashes On
|
||||||
|
|
|
@ -10,6 +10,7 @@ https://<server_name> {
|
||||||
path /latest_version
|
path /latest_version
|
||||||
path /api/manifest/dash/id/*
|
path /api/manifest/dash/id/*
|
||||||
path /videoplayback*
|
path /videoplayback*
|
||||||
|
path /download*
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_proxy @companion localhost:8282
|
reverse_proxy @companion localhost:8282
|
||||||
|
|
|
@ -50,6 +50,14 @@ server {
|
||||||
proxy_set_header Connection ""; # to keep alive
|
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
|
if ($https = '') { return 301 https://$host$request_uri; } # if not connected to HTTPS, perma-redirect to HTTPS
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue