nixos-config/services/calibre-web.nix

19 lines
360 B
Nix
Raw Normal View History

2022-05-29 17:26:10 +02:00
{ 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}";
};
};
}