From 69f56d851c2d63a60e65724b81121bc77b1e8ca9 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 3 Sep 2022 18:48:26 -0600 Subject: [PATCH] box: enable calibre web --- hosts/box/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index 09a87db..383e2f5 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -282,6 +282,12 @@ in { openFirewall = true; }; + calibre-web = { + enable = true; + dataDir = "/media/books"; + options = { enableBookUploading = true; }; + }; + grafana = { enable = true; domain = "graph.tapenet.org"; @@ -663,6 +669,21 @@ in { }; }; + "books.bold.daemon" = { + #sslCertificateKey = "${config.sops.secrets.reddit_key.path}"; + #sslCertificate = "${config.sops.secrets.reddit_cert.path}"; + #forceSSL = true; + locations."/" = { + proxyPass = + "http://localhost:${toString config.services.calibre-web.port}"; + proxyWebsockets = true; + extraConfig = '' + ${httpAllow} + deny all; + ''; + }; + }; + "sonarr.bold.daemon" = { sslCertificateKey = "${config.sops.secrets.sonarr_key.path}"; sslCertificate = "${config.sops.secrets.sonarr_cert.path}";