mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a note about uploading large books when reverse proxying with nginx
This commit is contained in:
parent
5ce36cc3e6
commit
5ba9dbe940
@ -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::
|
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 {
|
server {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name myserver.example.com;
|
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::
|
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;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
location /calibre/ {
|
location /calibre/ {
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user