box: enable calibre web

This commit is contained in:
Aaron Bieber 2022-09-03 18:48:26 -06:00
parent 8359337940
commit 69f56d851c
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}";