24 lines
426 B
Nix
24 lines
426 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
cfg = config.services.audiobookshelf;
|
|
in
|
|
{
|
|
services = {
|
|
audiobookshelf = {
|
|
enable = true;
|
|
|
|
port = 4001;
|
|
};
|
|
|
|
nginx.virtualHosts."audiobookshelf.oliverdavies.uk" = {
|
|
forceSSL = true;
|
|
useACMEHost = "oliverdavies.uk";
|
|
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString cfg.port}";
|
|
recommendedProxySettings = true;
|
|
};
|
|
};
|
|
};
|
|
}
|