From 970140bfec301c427d66b24bdd9a791f680055a0 Mon Sep 17 00:00:00 2001 From: Jonathan Neidel Date: Tue, 17 Feb 2026 14:05:17 +0100 Subject: [PATCH] Describe nginx proxy manager fix needing to re-login often See #4630 and https://github.com/advplyr/audiobookshelf/issues/4630#issuecomment-3842888850 --- readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/readme.md b/readme.md index 877ea091c..d6a5ba17e 100644 --- a/readme.md +++ b/readme.md @@ -93,6 +93,22 @@ Toggle websockets support. NGINX Web socket +Add this Custom Nginx Configuration (under "Edit Proxy Host" > settings cog): +```nginx +proxy_connect_timeout 86400s; +proxy_send_timeout 86400s; +proxy_read_timeout 86400s; +send_timeout 86400s; + +proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +proxy_set_header X-Forwarded-Proto $scheme; +proxy_set_header X-Real-IP $remote_addr; + +proxy_set_header Upgrade $http_upgrade; +proxy_set_header Connection "upgrade"; +proxy_set_header Host $host; +``` + ### NGINX Reverse Proxy Add this to the site config file on your nginx server after you have changed the relevant parts in the <> brackets, and inserted your certificate paths.