From a3d0c56204505b005661463ce45fce37ca487144 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 28 Feb 2026 23:53:13 -0500 Subject: [PATCH] added more to proxy for mastodon --- modules/machine/yshtola/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/machine/yshtola/configuration.nix b/modules/machine/yshtola/configuration.nix index 56b9c72..8b570fe 100644 --- a/modules/machine/yshtola/configuration.nix +++ b/modules/machine/yshtola/configuration.nix @@ -1,5 +1,6 @@ { pkgs, + config, userName, ... }: let @@ -227,11 +228,24 @@ in { extraConfig = '' encode zstd gzip + root * ${config.services.mastodon.package}/public + + handle /system/* { + uri strip_prefix /system + root * /var/lib/mastodon/public-system + file_server + } + @streaming path /api/v1/streaming* handle @streaming { reverse_proxy localhost:4000 } + @static file + handle @static { + file_server + } + handle { reverse_proxy localhost:3000 }