algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
400 stars 86 forks source link

Algolia does not work behind a proxy #304

Open gaelle-cari opened 2 years ago

gaelle-cari commented 2 years ago

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

DevinCodes commented 2 years ago

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!