box: enable calibre web

This commit is contained in:
Aaron Bieber 2022-09-03 18:48:26 -06:00
parent 85a861c5ff
commit aa19b26c91
No known key found for this signature in database

View File

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