change proxypassreverse to custom code
This commit is contained in:
parent
089b75e21f
commit
1a0570a495
1 changed files with 23 additions and 21 deletions
|
@ -333,10 +333,12 @@ class mastodon (
|
|||
{ 'path' => '/browserconfig.xml', 'url' => '!' },
|
||||
{ 'path' => '/mask-icon.svg', 'url' => '!' },
|
||||
],
|
||||
proxy_dest_reverse_match => [
|
||||
{ 'path' => '/api/v1/streaming', 'url' => 'ws://localhost:4000' },
|
||||
{ 'path' => '/', 'url' => 'http://localhost:3000/' },
|
||||
],
|
||||
custom_fragment => '
|
||||
ProxyPass /api/v1/streaming ws://localhost:4000
|
||||
ProxyPassReverse /api/v1/streaming ws://localhost:4000
|
||||
ProxyPass / http://localhost:3000/
|
||||
ProxyPassReverse / http://localhost:3000/
|
||||
',
|
||||
proxy_pass_match => [
|
||||
{ 'path' => '^(/.*\.(png|ico)$)', 'url' => '!' },
|
||||
{ 'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)', 'url' => '!' },
|
||||
|
|
Loading…
Reference in a new issue