jwinterfeld
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Search with Algolia] Reverse Proxy Configuration@tw2113 we resolved the issue without code modification. After investigating the code we found the filter
algolia_http_client_optionsin this file: https://github.com/WebDevStudios/wp-search-with-algolia/blob/main/includes/factories/class-algolia-http-client-interface-factory.phpWe resolved it by declaring a function in the theme functions.php file:
if (! function_exists('dur_algolia_http_client_options')) :
function dur_algolia_http_client_options($options)
{
$options['CURLOPT_PROXY'] = WP_PROXY_HOST . ':' . WP_PROXY_PORT;
return $options;
}
add_filter('algolia_http_client_options', 'dur_algolia_http_client_options', 10, 1);
endif;My recommendation is to update the docs and explain the filter instead of modifying the plugin. What do you think?
Forum: Plugins
In reply to: [WP Search with Algolia] Reverse Proxy Configuration@tw2113 thanks. We are still working on it. Currently we were able isolate the issue and reproduce it. Hopefully we will be able to provide further information within 2 weeks.
Forum: Plugins
In reply to: [WP Search with Algolia] Reverse Proxy ConfigurationThanks Michael.
I did some investigation and believe we should extend the
SearchConfig::createmethod (reference: SearchConfig.php#L15) to accept “hosts” and “headers” as parameters. Does that make sense to you?Related Algolia Docs:
– https://www.algolia.com/doc/libraries/php/v3/customize/#use-a-custom-host
– https://www.algolia.com/doc/libraries/php/v3/customize/#add-http-headers-to-every-requestForum: Plugins
In reply to: [WP Search with Algolia] Reverse Proxy ConfigurationHi Michael,
thank you!
Currently we are experiencing issues while authenticating against algolia using “WP Search with Algolia”. I think this is plugin related. Are you respecting proxy configurations from the wordpress config? (we double checked the credentials)
Perhaps this is the recommendation from Algolia: https://support.algolia.com/hc/en-us/articles/17789246970641-How-do-I-use-Python-API-client-with-proxy
Thanks and have a nice day,
Jan