Skip to content
Discussion options

You must be logged in to vote

That 504 isn't coming from Stirling. The page says openresty, so it's your reverse proxy giving up (Nginx Proxy Manager is built on openresty). nginx's proxy_read_timeout defaults to 60 seconds, and OCR on 382 scanned pages will take way longer than that, which is why the container logs show nothing wrong. Your Tesseract and LibreOffice timeouts only matter inside the app.

Raise the timeouts on the proxy host. In NPM that's the Advanced tab for the proxy host:

proxy_connect_timeout 7200s;
proxy_send_timeout 7200s;
proxy_read_timeout 7200s;
send_timeout 7200s;

If you ever hit a 413 on the upload itself, client_max_body_size needs bumping the same way for a 400 MB file. To confirm it's the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justuserdroid
Comment options

Answer selected by justuserdroid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants