2024-08-29 03:26:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-08-06 16:30:47 +02:00
|
|
|
{
|
|
|
|
|
2024-10-09 14:27:12 +02:00
|
|
|
healthchecks.http.navidrome = {
|
2024-10-10 02:32:18 +02:00
|
|
|
url = "${config.networking.hostName}.wg0:${toString config.services.navidrome.settings.Port}/app/#/login";
|
2024-10-09 14:27:12 +02:00
|
|
|
expectedContent = "Navidrome";
|
|
|
|
};
|
|
|
|
|
|
|
|
healthchecks.closed.retiolum.ports.navidrome = [ config.services.navidrome.settings.Port ];
|
|
|
|
|
2024-08-06 16:30:47 +02:00
|
|
|
services.navidrome = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
group = "media";
|
|
|
|
user = "media";
|
|
|
|
settings.Address = "0.0.0.0";
|
|
|
|
settings.MusicFolder = "/media/arr/lidarr";
|
|
|
|
};
|
|
|
|
|
2024-11-02 08:35:32 +01:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."music.${config.networking.hostName}.private" = {
|
|
|
|
serverAliases = [
|
|
|
|
"music.${config.networking.hostName}.wg0"
|
|
|
|
"music.ingolf-wagner.de"
|
|
|
|
];
|
|
|
|
locations."/" = {
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://localhost:${toString config.services.navidrome.settings.Port}";
|
|
|
|
extraConfig = ''
|
|
|
|
allow ${config.tinc.private.subnet};
|
|
|
|
allow ${config.wireguard.wg0.subnet};
|
|
|
|
deny all;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-06 16:30:47 +02:00
|
|
|
}
|