feat(calibre-server): install and add to homepage
This commit is contained in:
parent
69c335dc2f
commit
5a993dee69
3 changed files with 31 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
# keep-sorted start
|
||||
"bazarr"
|
||||
"caddy"
|
||||
"calibre-server"
|
||||
"copyparty"
|
||||
"couchdb"
|
||||
"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" = [
|
||||
{
|
||||
"Calibre Server" = {
|
||||
"description" = "Calibre library manager";
|
||||
"icon" = "calibre.svg";
|
||||
"href" = "https://calibre.fi33.buzz/";
|
||||
};
|
||||
}
|
||||
{
|
||||
"copyparty" = {
|
||||
"description" = "Cloud file manager";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue