You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: calibre-web.subdomain.conf.sample
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@
2
2
# make sure that your calibre-web container is named calibre-web
3
3
# make sure that your dns has a cname set for calibre-web
4
4
5
+
# port 80 is necessary for kobo
6
+
server {
7
+
listen 80;
8
+
listen [::]:80;
9
+
server_name calibre-web.*;
10
+
11
+
return 301 https://$host$request_uri; # this is required according to https://github.com/janeczku/calibre-web/issues/1891#issuecomment-801886803, make sure to set Server External Port to 80 (not 443!)
12
+
}
13
+
5
14
server {
6
15
listen 443 ssl;
7
16
listen [::]:443 ssl;
@@ -22,6 +31,12 @@ server {
22
31
#include /config/nginx/authentik-server.conf;
23
32
24
33
location / {
34
+
35
+
# proxy buffer is required for kobo downloads to work as per https://github.com/janeczku/calibre-web/issues/1891#issuecomment-801886803
36
+
proxy_buffer_size 128k;
37
+
proxy_buffers 4 256k;
38
+
proxy_busy_buffers_size 256k;
39
+
25
40
# enable the next two lines for http auth
26
41
#auth_basic "Restricted";
27
42
#auth_basic_user_file /config/nginx/.htpasswd;
@@ -38,7 +53,25 @@ server {
38
53
# enabled, "Reverse Proxy Header Name" is set to Remote-User, and each Authelia
39
54
# user also has a corresponding user manually created in Calibre-Web.
40
55
41
-
include /config/nginx/proxy.conf;
56
+
# original proxy.conf config without the incompatible proxy_buffer config
0 commit comments