mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
30 lines
676 B
Nix
30 lines
676 B
Nix
{ instancesFunctions }:
|
|
let
|
|
inherit (instancesFunctions)
|
|
domain0
|
|
servicePath
|
|
sslPath
|
|
sopsPath
|
|
;
|
|
audiobookshelfLabel = "Audiobookshelf";
|
|
audiobookshelfName = "audiobookshelf";
|
|
audiobookshelfSubdomain = "books";
|
|
in
|
|
{
|
|
label = audiobookshelfLabel;
|
|
name = audiobookshelfName;
|
|
sops = {
|
|
path0 = "${sopsPath}/${audiobookshelfName}";
|
|
};
|
|
subdomain = audiobookshelfSubdomain;
|
|
paths = {
|
|
path0 = "${servicePath}/${audiobookshelfLabel}";
|
|
};
|
|
ports = {
|
|
port0 = 8000;
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${audiobookshelfSubdomain}.${domain0}/fullchain.pem";
|
|
key = "${sslPath}/${audiobookshelfSubdomain}.${domain0}/key.pem";
|
|
};
|
|
}
|