feat: add calibre-web
This commit is contained in:
parent
6b7ae2c252
commit
d500456671
2
rpi4.nix
2
rpi4.nix
|
@ -30,6 +30,7 @@ in with builtins; {
|
|||
./services/miniflux.nix
|
||||
./services/paperless.nix
|
||||
./services/nextcloud.nix
|
||||
./services/calibre-web.nix
|
||||
];
|
||||
|
||||
age.secrets.cloudflare.file = ./secrets/cloudflare.age;
|
||||
|
@ -73,6 +74,7 @@ in with builtins; {
|
|||
"cloud.felschr.com"
|
||||
"office.felschr.com"
|
||||
"media.felschr.com"
|
||||
"books.felschr.com"
|
||||
"news.felschr.com"
|
||||
"mqtt.felschr.com"
|
||||
"owntracks.felschr.com"
|
||||
|
|
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…
Reference in a new issue