nix-config/hosts/nixedo/modules/audiobookshelf.nix

25 lines
426 B
Nix
Raw Normal View History

2025-04-19 11:45:23 +01:00
{ config, ... }:
2024-12-14 20:19:42 +00:00
let
cfg = config.services.audiobookshelf;
in
2024-12-14 20:19:42 +00:00
{
2025-04-19 11:45:23 +01:00
services = {
audiobookshelf = {
enable = true;
2024-12-26 00:13:42 +00:00
2025-04-19 11:45:23 +01:00
port = 4001;
};
2024-12-14 20:19:42 +00:00
nginx.virtualHosts."audiobookshelf.oliverdavies.uk" = {
forceSSL = true;
2025-04-19 11:45:23 +01:00
useACMEHost = "oliverdavies.uk";
2024-12-14 20:19:42 +00:00
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
2025-04-28 02:07:10 +01:00
recommendedProxySettings = true;
};
2024-12-14 20:19:42 +00:00
};
};
}