vps: add calibre

This commit is contained in:
Fabian Montero 2025-01-23 09:54:43 -06:00
parent 05d397f53e
commit dd6a8f9e1c
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."calibre.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://[::1]:8083";
};
};
};
calibre-web = {
enable = true;
openFirewall = true;
options = {
enableBookUploading = true;
calibreLibrary = "/var/lib/calibre-web/calibre_library";
};
};
};
}

View file

@ -16,5 +16,6 @@ with lib; {
./trilium.nix ./trilium.nix
./syncthing.nix ./syncthing.nix
./shiori.nix ./shiori.nix
./calibre-web.nix
]; ];
} }