Host Calibre #88
3 changed files with 31 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
"bazarr"
|
"bazarr"
|
||||||
"caddy"
|
"caddy"
|
||||||
|
"calibre-server"
|
||||||
"copyparty"
|
"copyparty"
|
||||||
"couchdb"
|
"couchdb"
|
||||||
"firefly"
|
"firefly"
|
||||||
|
|
|
||||||
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
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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