Closed phuslu closed 3 months ago
Thanks for investigating, I will look into this asap!
@hello phuslu,
Now there's a definitive fix.
Using the nginx.conf
in the examples folder:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name localhost;
location ~/yt-dlp/(.*)$ {
proxy_pass http://10.0.0.6:3033/$1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 20000m;
proxy_connect_timeout 3000;
proxy_send_timeout 3000;
proxy_read_timeout 3000;
send_timeout 3000;
}
}
}
It behaves as expected.
To reproduce:
docker run --rm -p 80:80 -v /path/to/nginx.conf:/etc/nginx/nginx.conf:ro nginx:stable-alpine
I use example nginx.conf but failed, I found the frontend need some fixes, a dirty/PoC fix is like
this fix is hardcoded and ugly, but It figured out the root cause. Could please help fix, thanks again!