yacreader icon indicating copy to clipboard operation
yacreader copied to clipboard

running behind a reverse proxy

Open talmroth opened this issue 7 months ago • 0 comments

I have YACReaderLibraryService running in docker (official image). Works fine when accessing by hostname/ip address.

When I try to run it in behind a reverse proxy (nginx proxy manager specifically) the iOS app won't work properly. I've gone though several different errors. Must use server 9.8.1 to start, not sure how but eventually i got it to see the library but all the cover images were blank, switched to local address and I think it cached enough that it wasn't hitting the server any more but you can't open a comic.

dug into my nginx logs and found a lot of logs like this one

2025/07/21 09:27:05 [error] 935#935: *148973 upstream sent invalid chunked response while reading upstream, client: x.x.x.x, server: your.proxy.domain, request: "GET /v2/library/1/comic/20373/page/12/remote HTTP/1.1", upstream: "http://x.x.x.x:9999/v2/library/1/comic/20373/page/12/remote", host: "your.proxy.domain:80"

I noticed that QTWebApp 1.9.0 chunked transfers were changed:

"1.9.0 07.09.2023 Some methods return now const references to improve the performance a little bit. Chunked transfer is not used anymore if the Content-Length is known."

Not sure if this would fix the issue.

Not a barn burner issue but maybe someone who knows more than I do knows the answer.

talmroth avatar Jul 21 '25 18:07 talmroth