diff --git a/services/calibre-web.nix b/services/calibre-web.nix index cd56786..8148e16 100644 --- a/services/calibre-web.nix +++ b/services/calibre-web.nix @@ -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; + ''; + }; }; }; }