From 5a5dc81c4d6037b3d5031920b6e2b7dee575784c Mon Sep 17 00:00:00 2001 From: onvrb <23731360+onvrb@users.noreply.github.com> Date: Tue, 9 Nov 2021 12:18:35 +0000 Subject: [PATCH] Update youtube-dl.subfolder.conf.sample fix to work with latest version --- youtube-dl.subfolder.conf.sample | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; }