19 lines
360 B
Nix
19 lines
360 B
Nix
|
{ 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}";
|
||
|
};
|
||
|
};
|
||
|
}
|