scout-extended icon indicating copy to clipboard operation
scout-extended copied to clipboard

Algolia does not work behind a proxy

Open gaelle-cari opened this issue 3 years ago • 1 comments
trafficstars

  • Laravel version: 8.83.0
  • Algolia Scout Extended version: 2.0.1
  • Language Version: PHP 7.4.12

Hello,

Algolia (with Scout Extended package) does not work behind a proxy, I saw this documentation: https://www.algolia.com/doc/api-client/advanced/pass-options-to-the-http-client/php/?client=php but I couldn't find how to set up the proxy with Scout Extended.

Could you tell me how to proceed?

Thank you.

Best regards

Gaëlle

gaelle-cari avatar Mar 03 '22 06:03 gaelle-cari

Hi there!

You should be able to use the snippet from the documentation you linked, and place it in the boot method of your AppServiceProvider. This should let Scout Extended resolve the Algolia client using the HTTP client you set there.

Let me know if this works!

DevinCodes avatar Mar 03 '22 14:03 DevinCodes