39 lines
908 B
Nix
39 lines
908 B
Nix
{ config, containerCfg, pkgs, lib, builder, name,... }:
|
|
let
|
|
version = "latest";
|
|
serverCfg = config.syscfg.server;
|
|
in {
|
|
sops = false;
|
|
db = false;
|
|
paths = [
|
|
{
|
|
path = "${serverCfg.configPath}/calibre-web/";
|
|
mode = "0755";
|
|
dirs = ["library" "ingest"];
|
|
}
|
|
];
|
|
|
|
containers = {
|
|
server = builder.mkContainer {
|
|
subdomain = containerCfg.subdomain;
|
|
image = "crocodilestick/calibre-web-automated:${version}";
|
|
port = 8083;
|
|
# secret = name;
|
|
extraEnv = {
|
|
CWA_PORT_OVERRIDE = "8083";
|
|
|
|
PUID = "1000";
|
|
PGID = "1000";
|
|
#HARDCOVER_TOKEN= ....
|
|
TRUSTED_PROXY_COUNT= "1";
|
|
};
|
|
overrides = {
|
|
cmd = [ ];
|
|
volumes = [
|
|
"${serverCfg.configPath}/calibre-web/library/:/calibre-library"
|
|
"${serverCfg.configPath}/calibre-web/ingest/:/cwa-book-ingest"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |