Add a note about uploading large books when reverse proxying with nginx

This commit is contained in:
Kovid Goyal 2021-03-22 09:38:54 +05:30
parent 5ce36cc3e6
commit 5ba9dbe940
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -267,6 +267,10 @@ server. In this case, run the calibre server as::
Now setup the virtual host in your main server, for example, for nginx::
http {
client_max_body_size 64M; # needed to upload large books
}
server {
listen [::]:80;
server_name myserver.example.com;
@ -302,6 +306,10 @@ The key parameter here is ``--url-prefix /calibre``. This causes the Content ser
With nginx, the required configuration is::
http {
client_max_body_size 64M; # needed to upload large books
}
proxy_set_header X-Forwarded-For $remote_addr;
location /calibre/ {
proxy_buffering off;