mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 04:07:28 +01:00
challenger: add navidrome
This commit is contained in:
parent
aeb9014815
commit
817514b8b7
@ -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
|
||||
|
20
hosts/challenger/services/navidrome.nix
Normal file
20
hosts/challenger/services/navidrome.nix
Normal 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}";
|
||||
};
|
||||
}
|
@ -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/" {};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user