nixos-selfhost/ebooks.nix

26 lines
530 B
Nix
Raw Permalink Normal View History

2024-10-15 12:34:28 +02:00
{...}: 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;
2024-10-23 11:36:26 +02:00
enableBookConversion = true;
2024-10-15 12:34:28 +02:00
calibreLibrary = "/pool/media/ebooks";
};
};
services.nginx.virtualHosts.${domain} = {
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
proxyWebsockets = true;
};
};
}