fix: add configurable uwsgi_read_timeout to fix 504 timeout on large M3U imports (fixes #745)

This commit is contained in:
Nicholas Gerrer 2026-02-25 23:34:56 -05:00
parent 03c8d55ab9
commit 6f54910986
3 changed files with 3 additions and 0 deletions

View file

@ -41,6 +41,7 @@ export REDIS_DB=${REDIS_DB:-0}
export REDIS_PASSWORD=${REDIS_PASSWORD:-}
export REDIS_USER=${REDIS_USER:-}
export DISPATCHARR_PORT=${DISPATCHARR_PORT:-9191}
export NGINX_UWSGI_TIMEOUT=${NGINX_UWSGI_TIMEOUT:-300}
export LIBVA_DRIVERS_PATH='/usr/local/lib/x86_64-linux-gnu/dri'
export LD_LIBRARY_PATH='/usr/local/lib'
export SECRET_FILE="/data/jwt"

View file

@ -36,6 +36,7 @@ if ! [[ "$DISPATCHARR_PORT" =~ ^[0-9]+$ ]]; then
DISPATCHARR_PORT=9191
fi
sed -i "s/NGINX_PORT/${DISPATCHARR_PORT}/g" /etc/nginx/sites-enabled/default
sed -i "s/NGINX_UWSGI_TIMEOUT/${NGINX_UWSGI_TIMEOUT}/g" /etc/nginx/sites-enabled/default
# Configure nginx based on IPv6 availability
if ip -6 addr show | grep -q "inet6"; then

View file

@ -21,6 +21,7 @@ server {
location / {
include uwsgi_params;
uwsgi_pass unix:/app/uwsgi.sock;
uwsgi_read_timeout NGINX_UWSGI_TIMEOUT;
}
location /assets/ {