Host Calibre #88
3 changed files with 43 additions and 13 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
"bazarr"
|
"bazarr"
|
||||||
"caddy"
|
"caddy"
|
||||||
|
"calibre-server"
|
||||||
"copyparty"
|
"copyparty"
|
||||||
"couchdb"
|
"couchdb"
|
||||||
"firefly"
|
"firefly"
|
||||||
|
|
@ -14,7 +15,6 @@
|
||||||
"immich"
|
"immich"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"karakeep"
|
"karakeep"
|
||||||
"kavita"
|
|
||||||
"lidarr"
|
"lidarr"
|
||||||
"miniflux"
|
"miniflux"
|
||||||
"ntfy-sh"
|
"ntfy-sh"
|
||||||
|
|
|
||||||
23
modules/nixos/features/calibre-server.nix
Normal file
23
modules/nixos/features/calibre-server.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
let
|
||||||
|
port = 5011;
|
||||||
|
certloc = "/var/lib/acme/fi33.buzz";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
calibre-server = {
|
||||||
|
enable = true;
|
||||||
|
extraFlags = [ "--trusted-ips=127.0.0.1" ];
|
||||||
|
group = "srv";
|
||||||
|
host = "127.0.0.1";
|
||||||
|
inherit port;
|
||||||
|
libraries = [ "/media/media/books" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
caddy.virtualHosts."calibre.fi33.buzz".extraConfig = ''
|
||||||
|
reverse_proxy localhost:${toString port}
|
||||||
|
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
||||||
|
protocols tls1.3
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -192,18 +192,18 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
"Kavita" = {
|
# "Kavita" = {
|
||||||
"description" = "Book reader";
|
# "description" = "Book reader";
|
||||||
"icon" = "kavita.svg";
|
# "icon" = "kavita.svg";
|
||||||
"href" = "https://kavita.fi33.buzz/";
|
# "href" = "https://kavita.fi33.buzz/";
|
||||||
"widget" = {
|
# "widget" = {
|
||||||
"type" = "kavita";
|
# "type" = "kavita";
|
||||||
"url" = "https://kavita.fi33.buzz/";
|
# "url" = "https://kavita.fi33.buzz/";
|
||||||
"key" = "@kavita-api@";
|
# "key" = "@kavita-api@";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
"Karakeep" = {
|
"Karakeep" = {
|
||||||
"description" = "Web clipper";
|
"description" = "Web clipper";
|
||||||
|
|
@ -245,6 +245,13 @@ in
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"Services" = [
|
"Services" = [
|
||||||
|
{
|
||||||
|
"Calibre Server" = {
|
||||||
|
"description" = "Calibre library manager";
|
||||||
|
"icon" = "calibre.svg";
|
||||||
|
"href" = "https://calibre.fi33.buzz/";
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
"copyparty" = {
|
"copyparty" = {
|
||||||
"description" = "Cloud file manager";
|
"description" = "Cloud file manager";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue