fix proxy pass match

This commit is contained in:
Antonio J. Delgado 2023-11-28 19:28:49 +02:00
parent f4bbcac8b0
commit dcce283101

View file

@ -337,7 +337,7 @@ class mastodon (
{ 'path' => '/api/v1/streaming', 'url' => 'ws://localhost:4000' }, { 'path' => '/api/v1/streaming', 'url' => 'ws://localhost:4000' },
{ 'path' => '/', 'url' => 'http://localhost:3000/' }, { 'path' => '/', 'url' => 'http://localhost:3000/' },
], ],
proxy_dest_match => [ proxy_pass_match => [
{ 'path' => '^(/.*\.(png|ico)$)', 'url' => '!' }, { 'path' => '^(/.*\.(png|ico)$)', 'url' => '!' },
{ 'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)', 'url' => '!' }, { 'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)', 'url' => '!' },
], ],