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, pkgs,
config,
userName, userName,
... ...
}: let }: let
@@ -227,11 +228,24 @@ in {
extraConfig = '' extraConfig = ''
encode zstd gzip 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* @streaming path /api/v1/streaming*
handle @streaming { handle @streaming {
reverse_proxy localhost:4000 reverse_proxy localhost:4000
} }
@static file
handle @static {
file_server
}
handle { handle {
reverse_proxy localhost:3000 reverse_proxy localhost:3000
} }