From 6efc9cea3fec7e986ef17eb83fb90cc17efd4e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sun, 29 May 2022 17:55:57 +0200 Subject: [PATCH] fix(calibre-web): fix & improve config --- services/calibre-web.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; + ''; + }; }; }; }