feat(calibre-server): install and add to homepage

This commit is contained in:
wi11-holdsworth 2026-01-20 14:55:53 +11:00
parent 69c335dc2f
commit 5a993dee69
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,23 @@
let
port = 5011;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
calibre-server = {
enable = true;
extraFlags = [ "--trusted-ips=127.0.0.1" ];
group = "srv";
host = "127.0.0.1";
inherit port;
libraries = [ "/media/media/books" ];
};
caddy.virtualHosts."calibre.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}