Fix navidrome config
Add actual directory to store music
This commit is contained in:
parent
30e5cc59d7
commit
552454c010
|
@ -1,8 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
baseUrl = "music.xenia.me.uk";
|
||||
port = 4533;
|
||||
in {
|
||||
{ pkgs, ... }: {
|
||||
imports = [ ../traefik/default.nix ];
|
||||
environment.systemPackages = with pkgs; [ ffmpeg ];
|
||||
services = {
|
||||
|
@ -10,19 +6,21 @@ in {
|
|||
enable = true;
|
||||
settings = {
|
||||
Address = "127.0.0.1";
|
||||
BaseUrl = "https://${baseUrl}";
|
||||
Port = port;
|
||||
Port = 4533;
|
||||
MusicFolder = "/media/music";
|
||||
};
|
||||
};
|
||||
traefik.dynamicConfigOptions.http = {
|
||||
routers.navidrome = {
|
||||
rule = "Host(`${baseUrl}`)";
|
||||
entryPoints = [ "http" "https" ];
|
||||
service = "synapse-service";
|
||||
tls = { certResolver = "default"; };
|
||||
traefik.dynamicConfigOptions = {
|
||||
http = {
|
||||
routers.navidrome = {
|
||||
rule = "Host(`music.xenia.me.uk`)";
|
||||
entryPoints = [ "http" "https" ];
|
||||
service = "navidrome-service";
|
||||
tls = { certResolver = "default"; };
|
||||
};
|
||||
services.navidrome-service.loadBalancer.servers =
|
||||
[{ url = "http://localhost:4533"; }];
|
||||
};
|
||||
services.navidrome.loadBalancer.servers =
|
||||
[{ url = "http://localhost:${port}"; }];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue