mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-24 07:05:38 -07:00
Update youtube-dl.subfolder.conf.sample
fix to work with latest version
This commit is contained in:
parent
0b4c128f1e
commit
5a5dc81c4d
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue