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