Algram / ytdl-webserver

📻 Webserver for downloading youtube videos. Ready for docker.
MIT License
1.44k stars 140 forks source link

Subfolder #38

Open Bumbadawg opened 4 years ago

Bumbadawg commented 4 years ago

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 ?

laurensmiers commented 4 years ago

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 :)...).