change proxypassreverse to custom code

This commit is contained in:
Antonio J. Delgado 2023-11-28 19:41:15 +02:00
parent 089b75e21f
commit 1a0570a495

View file

@ -333,10 +333,12 @@ class mastodon (
{ 'path' => '/browserconfig.xml', 'url' => '!' }, { 'path' => '/browserconfig.xml', 'url' => '!' },
{ 'path' => '/mask-icon.svg', 'url' => '!' }, { 'path' => '/mask-icon.svg', 'url' => '!' },
], ],
proxy_dest_reverse_match => [ custom_fragment => '
{ 'path' => '/api/v1/streaming', 'url' => 'ws://localhost:4000' }, ProxyPass /api/v1/streaming ws://localhost:4000
{ 'path' => '/', 'url' => 'http://localhost:3000/' }, ProxyPassReverse /api/v1/streaming ws://localhost:4000
], ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
',
proxy_pass_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' => '!' },