diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index 5a6d142..70edd64 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -135,6 +135,7 @@ # Media server services services.media-server = { user = "yanlin"; + audiobookshelf.enable = true; deluge.enable = true; }; diff --git a/hosts/nixos/vps/proxy.nix b/hosts/nixos/vps/proxy.nix index babfd71..6a452e2 100644 --- a/hosts/nixos/vps/proxy.nix +++ b/hosts/nixos/vps/proxy.nix @@ -28,6 +28,17 @@ }; }; + audio = { + rule = "Host(`audio.yanlincs.com`)"; + service = "audio"; + tls = { + certResolver = "cloudflare"; + domains = [{ + main = "*.yanlincs.com"; + }]; + }; + }; + deluge = { rule = "Host(`deluge.yanlincs.com`)"; service = "deluge"; @@ -59,6 +70,14 @@ }; }; + audio = { + loadBalancer = { + servers = [{ + url = "http://nfss.yanlincs.com:8000"; + }]; + }; + }; + deluge = { loadBalancer = { servers = [{