feat: add calibre-web
This commit is contained in:
parent
6b7ae2c252
commit
d500456671
2 changed files with 20 additions and 0 deletions
services
18
services/calibre-web.nix
Normal file
18
services/calibre-web.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue