diff --git a/youtube-dl.subfolder.conf.sample b/youtube-dl.subfolder.conf.sample index 74f9c1d..5a93f8a 100644 --- a/youtube-dl.subfolder.conf.sample +++ b/youtube-dl.subfolder.conf.sample @@ -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; }