nixos-selfhost/audiobooks.nix

25 lines
348 B
Nix
Raw Permalink Normal View History

2024-03-24 22:37:16 +01:00
{ ... }:
2024-03-01 22:15:55 +01:00
let
domain = "books.sondell.org";
in
{
#
services.audiobookshelf = {
enable = true;
port = 8000;
};
services.nginx.virtualHosts.${domain} = {
2024-04-19 16:10:11 +02:00
forceSSL = true;
enableACME = true;
2024-03-24 22:37:16 +01:00
default = true;
2024-03-01 22:15:55 +01:00
locations."/" = {
proxyPass = "http://localhost:8000/";
proxyWebsockets = true;
};
};
}