Update youtube-dl.subfolder.conf.sample

fix to work with latest version
This commit is contained in:
onvrb 2021-11-09 12:18:35 +00:00 committed by GitHub
commit 5a5dc81c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,7 @@
## Version 2021/07/08
# Works with this youtube-dl Fork: https://github.com/nbr23/youtube-dl-server
location /youtube-dl {
return 301 $scheme://$host/youtube-dl/;
}
location ^~ /youtube-dl/ {
location ^~ /youtube-dl {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
@ -22,7 +18,4 @@ location ^~ /youtube-dl/ {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Referer '';
# next line doesn't work with the latest version of: https://github.com/nbr23/youtube-dl-server
# proxy_set_header Host $upstream_app:8080;
rewrite /youtube-dl(.*) $1 break;
}