Fix navidrome config

Add actual directory to store music
This commit is contained in:
Evie Litherland-Smith 2023-11-19 08:27:54 +00:00
parent 30e5cc59d7
commit 552454c010

View file

@ -1,8 +1,4 @@
{ pkgs, ... }: { pkgs, ... }: {
let
baseUrl = "music.xenia.me.uk";
port = 4533;
in {
imports = [ ../traefik/default.nix ]; imports = [ ../traefik/default.nix ];
environment.systemPackages = with pkgs; [ ffmpeg ]; environment.systemPackages = with pkgs; [ ffmpeg ];
services = { services = {
@ -10,19 +6,21 @@ in {
enable = true; enable = true;
settings = { settings = {
Address = "127.0.0.1"; Address = "127.0.0.1";
BaseUrl = "https://${baseUrl}"; Port = 4533;
Port = port; MusicFolder = "/media/music";
}; };
}; };
traefik.dynamicConfigOptions.http = { traefik.dynamicConfigOptions = {
routers.navidrome = { http = {
rule = "Host(`${baseUrl}`)"; routers.navidrome = {
entryPoints = [ "http" "https" ]; rule = "Host(`music.xenia.me.uk`)";
service = "synapse-service"; entryPoints = [ "http" "https" ];
tls = { certResolver = "default"; }; service = "navidrome-service";
tls = { certResolver = "default"; };
};
services.navidrome-service.loadBalancer.servers =
[{ url = "http://localhost:4533"; }];
}; };
services.navidrome.loadBalancer.servers =
[{ url = "http://localhost:${port}"; }];
}; };
}; };
} }