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