nixos-selfhost/ebooks.nix
2025-01-14 15:17:47 +01:00

26 lines
530 B
Nix

{...}: let
domain = "ebooks.sondell.org";
port = 8083;
in {
#
services.calibre-web = {
enable = true;
listen.port = port;
group = "backup";
# dataDir = "/pool/media/ebooks";
user = "jellyfin";
options = {
enableBookUploading = true;
enableBookConversion = true;
calibreLibrary = "/pool/media/ebooks";
};
};
services.nginx.virtualHosts.${domain} = {
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
proxyWebsockets = true;
};
};
}