added more to proxy for mastodon
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user