Hi, I we have a Ec2 instance in ubuntu is installe...
# community-help
s
Hi, I we have a Ec2 instance in ubuntu is installed, along with cyberpanel and openlitespeed, And in ubuntu I had installed typesense-server and add domain name xyz.com in ini. file and its working fine in Http, now I need to add SSL certificate to serve domain on SSL but getting SSL protocol error issue, I need help with SSL installation for anyrefrence guide will be helpful
j
add domain name xyz.com in ini. file
Hmm, there is no domain name setting in typesense's config ini file
For SSL cert, you'd essentially want to follow any online guide for getting say free SSL certs from let's encrypt. That will give you an SSL cert and SSL key
You'd then specify the paths to these two files in the Typesense server config. Search for SSL on this page: https://typesense.org/docs/26.0/api/server-configuration.html
s
Hi, I had followed the documentation but still getting the issue , I had followed this documentation for installtion of typesense on ubuntu server for detailed info on issue please check the video: https://sharing.clickup.com/clip/p/t2171179/6368711b-7e7e-492b-9cb7-79ad3fad07e0/screen-recording-2024-04-10-01:02.webm
Below is the typesense-server.ini file let me know if anything wrong with the file
; Typesense Configuration [server] api-address = ts.gainworkx.com api-port = 443 data-dir = /var/lib/typesense api-key = 0k1buTW0VOgtbLI6UflfiVY0osETexhI9lUvb5YbZi9seCSL log-dir = /var/log/typesense --ssl-certificate = /opt/psa/var/certificates/scfNjpnfz; --ssl-certificate-key = /opt/psa/var/certificates/scfNjpnfz; --ssl-refresh-interval-seconds = 8 * 60 * 60
j
You have to remove the
--
before each
ssl-
config in the file.
--
is only needed when you use those params as command line params
api-address
needs to be an IP address - cannot be a hostname
s
so where to provide host name ? if I want to access the API on domain ts.gainworkx.com is it possible?
j
You would have set up a DNS record to point that hostname to the IP address
s
Hi, Thankyou for the details i had successfully setup the typesense and working fine now
Had one more question the typesense is installed on one server and we want to use it on multiple domains so how to control the search? Like the content of domain A should not be searchable in Domain B,
j
You could create one collection for each domain, and create separate API keys for them
s
i had create a collection named as elakkai for elakkai domain and created different search API key for the domain but still the data indexed is not showing in collections apart from that the data which of domain elakkai.com is being searchable on mymahotsav.com, do need to create different admin keys are well or what ? please help me with the issue for detailed info refer to video: https://sharing.clickup.com/clip/p/t2171179/75c16f14-2f90-4020-9c4c-5213b73b89e0/screen-recording-2024-04-11-23%3A18.webm
j
The Wordpress plugin was built by a different company called Codemanas, and you want to reach out to them directly for support.
s
can u please tell me that multiple cluster creation on same instance is possible? if so how? or how to create nodes can each node be used on different sites?
j
Terminology-wise, an account has many clusters, a cluster has many collections, and a collection has many documents. A cluster also has many nodes and all nodes in a cluster fully replicate all collections. So to answer a variation of your question - you can indeed create multiple collections in a single cluster.
You can also create multiple clusters in an account if needed
s
Thankyou for the information, can u please share any reference document for creating multiple cluters I'm unable to find, Typsense is installed in ubuntu server
Also is it possible to create multiple Admin keys for same instance ? if so how to do and how typesense can differentiate admin keys
j
Oh I was referring to Typesense Cloud. If you're self-hosting, it would be easiest to just creation multiple collections on the same cluster
Yes - you can create multiple admin keys using the API Keys endpoint: https://typesense.org/docs/26.0/api/api-keys.html#create-an-api-key
s
can i create multiple clusters on self hosting ? if so how?
j
You would have to run multiple Typesense instances on different API ports
s
Is it like adding nodes on different ports? or complete different ubuntu server?
j
Node on different ports
s
Ok thnx ill try