• Resolved yawargenii

    (@yawargenii)


    The plugin has an inherent issue since it only supports port-based access. It does not allow route-based use of Typesense, which is an issue.

    public function setupClientCredentials(): void {
    $settings = Admin::get_default_settings();
    $this->node = ( $settings[‘protocol’] . $settings[‘node’] . ‘:’ . $settings[‘port’] . ‘/’ ?? ” );
    $this->admin_api_key = $settings[‘admin_api_key’] ?? ”;
    $this->debug_enabled = $settings[‘debug_log’] ?? false;
    }

    Solution: Have adjusted the code to ensure that the port is only included if the node string does not already contain a forward slash.

    $this->node = $settings[‘protocol’] . rtrim($settings[‘node’],’/’) . (strpos($settings[‘node’], ‘/’) !== false ? ” : ‘:’ . $settings[‘port’]) . ‘/’;

Viewing 1 replies (of 1 total)
  • Plugin Author CodeManas

    (@codemanas)

    Hi @yawargenii

    Can you please expand on what you mean here by route-based use of typesense ?
    I’m not sure i follow exactly what you mean here

Viewing 1 replies (of 1 total)
  • The topic ‘only support port-based access’ is closed to new replies.