ytdl-webserver icon indicating copy to clipboard operation
ytdl-webserver copied to clipboard

Subfolder

Open Bumbadawg opened this issue 4 years ago • 1 comments

Hi, i tried nginx proxy_pass, rewrite, modifying the source and webpacking it back; nothing got it to work in a subfolder in reverse proxy. Anyone got a working example ?

Bumbadawg avatar Mar 09 '20 22:03 Bumbadawg

Hi, I'm also having some trouble with this.

Just to be sure, what do you mean with not working? I can get the webpage to appear with the following nginx config (I'm not totally comfortable with nginx so there may be some stuff missing/ wrong, just fyi, last two lines are intentional to only allow local network):

location /ytdl/ {
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_pass http://localhost:3000;

    allow 192.168.1.0/24;
    deny all;
}

I enter a link to download and it seems to start but it hangs forever... Just wanted to know if this was the same behaviour you were seeing.

Will try to investigate further to get some debug info if I find the time (+ I would have to dive in javascript as well so don't hold your breath :)...).

laurensmiers avatar Apr 19 '20 18:04 laurensmiers