From 971321f289c8df1d045d2da91adc79d74ac4970d Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 14 Feb 2024 21:52:53 -0600 Subject: [PATCH] tweaks to audiobookshelf --- modules/audiobookshelf.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/audiobookshelf.nix b/modules/audiobookshelf.nix index 9d8ae9d..9dc8ac4 100644 --- a/modules/audiobookshelf.nix +++ b/modules/audiobookshelf.nix @@ -1,16 +1,20 @@ { pkgs, lib, config, ... }: with lib; + +let + port = "8999"; + { services.audiobookshelf = { enable = true; host = "0.0.0.0"; - port = "8999"; + port = port; }; services.caddy.virtualHosts = { "abs.cochrun.xyz".extraConfig = '' - reverse_proxy localhost:${services.audiobookshelf.port} + reverse_proxy localhost:${port} ''; }; }