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 = {