fix(calibre-web): fix & improve config

This commit is contained in:
Felix Schröter 2022-05-29 17:55:57 +02:00
parent a871a42a69
commit 6efc9cea3f
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -4,7 +4,10 @@ let port = 8088;
in {
services.calibre-web = {
enable = true;
listen.ip = "::1";
listen.port = port;
options.enableBookUploading = true;
options.enableBookConversion = true;
options.calibreLibrary = "/media/Books";
};
@ -12,7 +15,12 @@ in {
virtualHosts."books.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString port}";
locations."/" = {
proxyPass = "http://[::1]:${toString port}";
extraConfig = ''
client_max_body_size 100M;
'';
};
};
};
}