From 101bb948cecb694d217953a5e2d3f0caff5636d6 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 13 Jul 2026 00:05:54 +0200 Subject: [PATCH] feat: add audiobookshelf (native service + caddy vhost) --- jupiter/services.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jupiter/services.nix b/jupiter/services.nix index 54a9a50..78b3b35 100644 --- a/jupiter/services.nix +++ b/jupiter/services.nix @@ -101,6 +101,18 @@ }; }; + # ---- Audiobookshelf ---- + # Native module. Listens on localhost only; reached through caddy. + # Library/media paths are set in the web UI — point them at /mnt/data/... + # The service runs as user `audiobookshelf`, which must be able to READ those + # dirs on the RAID (chown/chmod or add it to the owning group as needed). + services.audiobookshelf = { + enable = true; + host = "127.0.0.1"; + port = 8000; + # openFirewall stays off — access is via the caddy reverse proxy. + }; + # ---- Containers ---- virtualisation.podman = { enable = true; @@ -129,6 +141,12 @@ virtualHosts."http://localhost".extraConfig = '' reverse_proxy localhost:8080 ''; + # Reach at http://audiobookshelf.sol — add a pihole local-DNS record + # audiobookshelf.sol -> jupiter's IP. (Or browse jupiter.sol directly if you + # set services.audiobookshelf.host = "0.0.0.0" + openFirewall instead.) + virtualHosts."http://audiobookshelf.sol".extraConfig = '' + reverse_proxy localhost:8000 + ''; }; # ---- System packages ----