challenger: add navidrome

This commit is contained in:
Felix Albrigtsen 2024-09-03 19:26:59 +02:00
parent aeb9014815
commit 817514b8b7
3 changed files with 22 additions and 0 deletions

View File

@ -14,6 +14,7 @@
./services/calibre.nix
./services/jellyfin.nix
./services/komga.nix
./services/navidrome.nix
./services/nextcloud.nix
./services/nginx.nix
./services/postgres.nix

View File

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
domain = "music.feal.no";
cfg = config.services.navidrome;
in {
services.navidrome = {
enable = true;
settings = {
BaseUrl = "https://${domain}";
EnableSharing = true;
EnableTranscodingConfig = true;
MusicFolder = "/tank/media/music/";
SubsonicArtistParticipations = true;
};
};
services.nginx.virtualHosts."${domain}".locations."/" = {
proxyPass = "http://${cfg.settings.Address}:${toString cfg.settings.Port}";
};
}

View File

@ -65,5 +65,6 @@ in {
"git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" {};
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" {};
"iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" {};
"music.feal.no" = publicProxy "http://challenger.home.feal.no/" {};
};
}