View Single Post
Old 05-31-2023, 12:55 AM   #3
305869
Connoisseur
305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.305869 seizes *every* day. In the original latin.
 
Posts: 95
Karma: 92818
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
Quote:
Originally Posted by kovidgoyal View Post
First try to do the upload locally from the same computer as the server via http://localhost:8080 if that works you know its not comeing from the calibre server. Then it is likely coming from some other server/firewall or similar between the client computer and the server computer.
Thank you for the suggestion!
I was able to upload the file normally accessing via localhost and even through the direct IP from another device instead of the domain name. So that told me it wasn't a Calibre problem but something with my reverse proxy setup.

I am not good at that stuff but a friend helped me figure it out. He helped me set it up behind nginx, and he made sure to set client_max_body_size to a large size but it still wasn't working. What finally seemed to fix it was adding the proxy_set_header settings below:

Code:
location / {
    proxy_pass http://<ip redacted>:<port>;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme $scheme;
    proxy_set_header X-Script-Name /calibre;
}
found here: https://github.com/Organizr/Config-C...s/calibre.conf
305869 is offline   Reply With Quote