nixos-selfhost/audiobooks.nix
2024-04-19 16:11:18 +02:00

25 lines
348 B
Nix

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