dotfiles/nix/modules/nixos/features/homelab/audiobookshelf.nix

22 lines
393 B
Nix
Raw Normal View History

2024-12-14 20:19:42 +00:00
{ config, ... }:
{
services.audiobookshelf = {
enable = true;
host = "audiobookshelf.davies.home";
2024-12-14 20:19:42 +00:00
port = 4001;
};
services.nginx = {
enable = true;
virtualHosts."audiobookshelf.davies.home" = {
2024-12-14 20:19:42 +00:00
locations."/" = {
proxyPass = "http://localhost:${toString config.services.audiobookshelf.port}/";
proxyWebsockets = true;
};
};
};
}