feat: add calibre-web

This commit is contained in:
Felix Schröter 2022-05-29 17:26:10 +02:00
parent 6b7ae2c252
commit d500456671
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 20 additions and 0 deletions

18
services/calibre-web.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
let port = 8083;
in {
services.calibre-web = {
enable = true;
listen.port = port;
options.calibreLibrary = "/media/Books";
};
services.nginx = {
virtualHosts."books.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString port}";
};
};
}