From 2999d1f556768d8b7b8652c32bf5c5c5e2f1b343 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 17 Feb 2026 15:52:34 +0100 Subject: [PATCH] enable navidrome --- hosts/nixos/nfss/system.nix | 1 + hosts/nixos/vps/proxy.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index ce546a2..7ec8369 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -140,6 +140,7 @@ # Media server services services.media-server = { user = "yanlin"; + navidrome.enable = true; deluge.enable = true; }; diff --git a/hosts/nixos/vps/proxy.nix b/hosts/nixos/vps/proxy.nix index bf542ab..d4d85ad 100644 --- a/hosts/nixos/vps/proxy.nix +++ b/hosts/nixos/vps/proxy.nix @@ -27,6 +27,17 @@ }; }; + music = { + rule = "Host(`music.yanlincs.com`)"; + service = "music"; + tls = { + certResolver = "cloudflare"; + domains = [{ + main = "*.yanlincs.com"; + }]; + }; + }; + }; services = { @@ -40,6 +51,14 @@ }; }; + music = { + loadBalancer = { + servers = [{ + url = "http://10.1.1.152:4533"; + }]; + }; + }; + }; };