From 3c81a5b5edb0d490c7930a7ae2fe4618e221f70a Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Mon, 15 May 2023 12:23:11 +0200 Subject: [PATCH] pennyworth: deploy calibre-web --- nixos/machines/pennyworth/default.nix | 13 +++++++++++++ nixos/roles/server.nix | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/nixos/machines/pennyworth/default.nix b/nixos/machines/pennyworth/default.nix index ac7c19c..e93184d 100644 --- a/nixos/machines/pennyworth/default.nix +++ b/nixos/machines/pennyworth/default.nix @@ -89,6 +89,11 @@ in { ''; }; "media.yori.cc" = sslforward "http://${vpn.ips.frumar}:32001"; + "calibre.yori.cc" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://[::1]:8083"; + }; }; networking.firewall.allowedUDPPorts = [ 31790 ]; # wg networking.firewall.allowedTCPPorts = [ 60307 ]; # weechat relay @@ -113,4 +118,12 @@ in { ]; nix.settings.allowed-users = [ "@wheel" ]; + services.calibre-web = { + enable = true; + options = { + enableBookUploading = true; + #enableBookConversion = true; + }; + }; + } diff --git a/nixos/roles/server.nix b/nixos/roles/server.nix index 5b97dd3..ec7550b 100644 --- a/nixos/roles/server.nix +++ b/nixos/roles/server.nix @@ -11,6 +11,12 @@ nixpkgs.overlays = [ (self: super: { libdecor = null; + imagemagick = super.imagemagick.override { + libheifSupport = false; + ghostscript = super.ghostscript.override { + cupsSupport = false; + }; + }; }) ]; }