Move navidrome port definition
This commit is contained in:
parent
d51762e91a
commit
cccd46d7a2
|
@ -1,15 +1,17 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let baseUrl = "music.xenia.me.uk";
|
let
|
||||||
|
baseUrl = "music.xenia.me.uk";
|
||||||
|
port = 4533;
|
||||||
in {
|
in {
|
||||||
imports = [ ../traefik/default.nix ];
|
imports = [ ../traefik/default.nix ];
|
||||||
environment.systemPackages = with pkgs; [ ffmpeg ];
|
environment.systemPackages = with pkgs; [ ffmpeg ];
|
||||||
services = rec {
|
services = {
|
||||||
navidrome = {
|
navidrome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
Address = "127.0.0.1";
|
Address = "127.0.0.1";
|
||||||
BaseUrl = "https://${baseUrl}";
|
BaseUrl = "https://${baseUrl}";
|
||||||
Port = 4533;
|
Port = port;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
traefik.dynamicConfigOptions.http = {
|
traefik.dynamicConfigOptions.http = {
|
||||||
|
@ -20,7 +22,7 @@ in {
|
||||||
tls = { certResolver = "default"; };
|
tls = { certResolver = "default"; };
|
||||||
};
|
};
|
||||||
services.navidrome.loadBalancer.servers =
|
services.navidrome.loadBalancer.servers =
|
||||||
[{ url = "http://localhost:${navidrome.settings.Port}"; }];
|
[{ url = "http://localhost:${port}"; }];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue