even more backups of things
This commit is contained in:
parent
b8d125d448
commit
630f9b0074
46 changed files with 1166 additions and 197 deletions
20
hosts/lithium/services/audiobookshelf.nix
Normal file
20
hosts/lithium/services/audiobookshelf.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
let
|
||||
homelabDomain = inputs.nixos-secrets.homelabDomain;
|
||||
svcDomain = "audiobooks.${homelabDomain}";
|
||||
svcPort = config.services.audiobookshelf.port; # Prevent a Conflict
|
||||
in
|
||||
{
|
||||
services.caddy.virtualHosts."${svcDomain}".extraConfig = ''
|
||||
reverse_proxy :${svcPort}
|
||||
'';
|
||||
|
||||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 8000;
|
||||
|
||||
# NOTE: Path to AudioBookShelf config & metadata inside of `/var/lib`
|
||||
dataDir = "audiobookshelf";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue