This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/modules/calibre.nix
Payas Relekar 490350c7f9 calibre: Disable
Until I figure out how to get authentication working.
2023-06-10 18:38:39 +05:30

31 lines
621 B
Nix

{ ... }:
{
services = {
calibre-server = {
enable = false;
user = "payas";
libraries = [ "/home/payas/org/books/calibre/" ];
};
nginx.virtualHosts = {
"books.bhankas.org" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = false;
extraConfig =
"proxy_set_header Host $host;"
;
};
};
};
};
security.acme.certs = {
"books.bhankas.org" = {
email = "admin@bhankas.org";
dnsResolver = "1.1.1.1:53";
};
};
}