nixos-selfhost/audiobooks.nix
2024-03-24 22:51:46 +01:00

23 lines
304 B
Nix

{ ... }:
let
domain = "books.sondell.org";
in
{
#
services.audiobookshelf = {
enable = true;
port = 8000;
};
services.nginx.virtualHosts.${domain} = {
default = true;
locations."/" = {
proxyPass = "http://localhost:8000/";
proxyWebsockets = true;
};
};
}