From a3bd66771e1747039bfdef18767778f380b8e1d9 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Sun, 21 Sep 2025 11:53:33 +0200 Subject: [PATCH] feat: add gonic Signed-off-by: Lander Van den Bulcke --- hosts/servers/hosting-02.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/servers/hosting-02.nix b/hosts/servers/hosting-02.nix index 491c495..b6eb4d8 100644 --- a/hosts/servers/hosting-02.nix +++ b/hosts/servers/hosting-02.nix @@ -68,6 +68,24 @@ }; }; + services.gonic = { + enable = true; + settings = { + music-path = [ "/data/music" ]; + podcast-path = [ "/data/podcast" ]; + playlists-path = [ "/data/playlists" ]; + }; + }; + + services.nginx.virtualHosts."music.escapeangle.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:4747"; + proxyWebsockets = true; + }; + }; + sops = { defaultSopsFile = ./hosting-02.yaml; secrets = {