nixos-selfhost/ebooks.nix
2024-10-15 12:34:28 +02:00

27 lines
539 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;
calibreLibrary = "/pool/media/ebooks";
};
};
services.nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
proxyWebsockets = true;
};
};
}