mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 09:06:06 +00:00
fix: add configurable uwsgi_read_timeout to fix 504 timeout on large M3U imports (fixes #745)
This commit is contained in:
parent
03c8d55ab9
commit
6f54910986
3 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ server {
|
|||
location / {
|
||||
include uwsgi_params;
|
||||
uwsgi_pass unix:/app/uwsgi.sock;
|
||||
uwsgi_read_timeout NGINX_UWSGI_TIMEOUT;
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue