nixos-selfhost/audiobooks.nix
2024-03-01 22:15:55 +01:00

28 lines
465 B
Nix

{ config, ... }:
let
domain = "books.sondell.org";
# derp = "hi";
in
{
#
services.audiobookshelf = {
enable = true;
port = 8000;
};
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8000/";
proxyWebsockets = true;
# extraConfig = ''
# access_log /var/log/nginx/access.log main if=$forgejo_access_log;
# '';
};
};
}