digitalutsc / ajax_solr_search

Drupal 8/9 module provide Federated Search with a shared Solr core. It also integrates Ajax Solr library to Drupal.
Apache License 2.0
0 stars 2 forks source link

Enable https for Solr Endpoint #2

Open kylehuynh205 opened 3 years ago

kylehuynh205 commented 3 years ago

The multisite Search form doesn't work if the protocol of Drupal side and Solr are not the same (ie. Drupal is https != Solr is http OR the opposite)

For Example: http://find.digital.utsc.utoronto.ca/multisite/search works while https://find.digital.utsc.utoronto.ca/multisite/search doesn't work.

A proper solution so far is enabling https for Solr.

kylehuynh205 commented 3 years ago

Irfan enabled https for Solr endpoint.

Issue: Connection Timeout error when run the form with VPN off because the Rest requests are made from javascript side which is front-end, while Solr Endpoint is behind VPN proection.

Solution: fixed by creating Proxy controller (https://github.com/digitalutsc/drupal_ajax_solr_search/blob/main/src/Controller/ProxySolrController.php) which pull data from Solr behind VPN and connect it to the Search form.

Demo: https://find.digital.utsc.utoronto.ca/multisite/search (can now run with VPN off)