Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algolia does not work behind a proxy #304

Open
gaelle-cari opened this issue Mar 3, 2022 · 1 comment
Open

Algolia does not work behind a proxy #304

gaelle-cari opened this issue Mar 3, 2022 · 1 comment

Comments

@gaelle-cari
Copy link

  • 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

@DevinCodes
Copy link
Contributor

DevinCodes commented Mar 3, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants