Skip to content

Commit

Permalink
sonarr: fix long interactive searches with nginx (swizzin#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ponta9 authored Oct 12, 2024
1 parent 1cfce53 commit a4062a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/nginx/sonarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ location /$app_baseurl {
location /$app_baseurl/api {
auth_basic off;
proxy_pass http://127.0.0.1:$app_port;
# Extend read timeout to allow long "Interactive Searches" to complete
proxy_read_timeout 900;
}
# Allow Calendar Feed External Access via NGINX
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/sonarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ ${app_name^} updater is exiting, please try again later."
fi

if [[ -f /install/.nginx.lock ]]; then
if grep -q "8989/sonarr" /etc/nginx/apps/sonarr.conf || ! grep -q "calendar" /etc/nginx/apps/sonarr.conf; then
if grep -q "8989/sonarr" /etc/nginx/apps/sonarr.conf || ! grep -q "proxy_read_timeout" /etc/nginx/apps/sonarr.conf; then
echo_progress_start "Upgrading nginx config for Sonarr"
bash /etc/swizzin/scripts/nginx/sonarr.sh
systemctl reload nginx -q
Expand Down

0 comments on commit a4062a1

Please sign in to comment.