From 62ae52cca70aa26f44b55d01dceaa53019fcfd4f Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 4 Dec 2023 07:38:00 -0700 Subject: [PATCH] h: enable navidrome and add vhost --- hosts/h/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hosts/h/default.nix b/hosts/h/default.nix index 384afba..e813022 100644 --- a/hosts/h/default.nix +++ b/hosts/h/default.nix @@ -293,6 +293,14 @@ in }; services = { + navidrome = { + enable = true; + settings = { + Address = "127.0.0.1"; + Port = 4533; + MusicFolder = "/var/lib/music"; + }; + }; shiori = { enable = true; port = 8967; @@ -544,6 +552,19 @@ in ''; }; + "music.tapenet.org" = { + forceSSL = true; + enableACME = true; + + locations = { + "/" = { + proxyPass = "http://${config.services.navidrome.settings.Address}:${toString config.services.navidrome.settings.Port}"; + proxyWebsockets = true; + priority = 1000; + }; + }; + }; + "git.tapenet.org" = { forceSSL = true; enableACME = true;