nixos-selfhost/audiobooks.nix
2024-03-24 22:37:16 +01:00

24 lines
336 B
Nix

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