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}";