added more to proxy for mastodon

This commit is contained in:
2026-02-28 23:53:13 -05:00
parent 6bdff15117
commit a3d0c56204

View File

@@ -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
}