2022-05-29 17:26:10 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2022-05-29 17:45:05 +02:00
|
|
|
let port = 8088;
|
2022-05-29 17:26:10 +02:00
|
|
|
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}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|