Hi all, I'm having a very difficult time with http...
# community-help
l
Hi all, I'm having a very difficult time with https, looking for direction. I successfully configured my web server to receive SSL traffic on port 443, and I'm hosting a react app that uses typesense. I also ran a docker command to init typesense, and shared the paths to the SSL certificates during initialization (See below). Then in my react app, i set https and the domain to use for typesense (see below). However, when I load my react app, it tells me there is an SSL protocol error (see below). Has anyone else set this up successfully? Have been struggling with this a lot, so help is greatly appreciated. docker command:
Copy code
sudo docker run \
    -p 8108:8108 \
    -v $(pwd)/typesense-data:/data \
    -v /etc/letsencrypt/live/mycooldomain.com:/keys \
    typesense/typesense:0.25.1 \
    --data-dir /data --api-key=$TYPESENSE_API_KEY \
    --cors-domains <https://mycooldomain.com>,<https://mycooldomain.com:8108>,<https://localhost:8108>,<http://localhost:8108> \
    --enable-cors \
    --ssl_certificate /keys/fullchain.pem \
    --ssl-certificate-key /keys/privkey.pem
react code:
Copy code
const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
  server: {
    apiKey: typesenseOptions.apiKey!,
    nodes: [
      {
        host: typesenseOptions.host!,
        port: 8108,
        protocol: "https"
      }
    ]
  },
  additionalSearchParameters: {
    query_by: "server__name,server__description",
    sort_by: 'server__size:desc',
  }
});
const searchClient = typesenseInstantsearchAdapter.searchClient;
error in chrome console:
Copy code
POST <https://mycooldomain.com:8108/multi_search?x-typesense-api-key=>..... net::ERR_SSL_PROTOCOL_ERROR