diff --git a/hosts/rpi4/services.nix b/hosts/rpi4/services.nix index ec944f4..9d7c43d 100644 --- a/hosts/rpi4/services.nix +++ b/hosts/rpi4/services.nix @@ -193,6 +193,29 @@ "kuma.protogen.io".locations."/".return = "301 https://uptime.protogen.io"; "vsc-hass.protogen.io" = mkReverseProxy 1881; + "trackmap.protogen.io" = let + root = pkgs.modpacks.notlite-ctm-static; + in { + useACMEHost = "protogen.io"; + authelia.instance = "main"; + authelia.endpointURL = "https://auth.protogen.io"; + locations."/" = { + inherit root; + extraConfig = '' + autoindex off; + ''; + }; + locations."/api/" = { + proxyPass = "http://10.10.0.3:3876"; + proxyWebsockets = true; + extraConfig = '' + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + ''; + }; + }; + "localhost" = { default = true;