mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
24 lines
522 B
Nix
24 lines
522 B
Nix
{config, ...}: let
|
|
cfg = config.services.navidrome;
|
|
domain = "music.kittywit.ch";
|
|
in {
|
|
services = {
|
|
navidrome = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
nginx.virtualHosts.${domain} = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
extraConfig = ''
|
|
client_max_body_size 512M;
|
|
'';
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://${cfg.settings.Address}:${toString cfg.settings.Port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|