Skip to content

Installing Typesense search instance

curl -O https://dl.typesense.org/releases/0.23.1/typesense-server-0.23.1-amd64.deb
sudo apt install ./typesense-server-0.23.1-amd64.deb

Normally, it should start automatically. No need to start it.

sudo systemctl start typesense-server.service

Some instance has nginx installed by default, the Typesense already has a HTTP server built-in, no need to use nginx, will take the 80 port.

sudo systemctl stop nginx.service

You open the file and change the API port to 443.

sudo vi /etc/typesense/typesense-server.ini

Install certbot first

sudo apt-get install certbot python3-certbot-nginx -y

Then you can create ssl-certificate key (the domain is for example, replace it)

sudo certbot certonly --force-renew --standalone --preferred-challenges http -d search-joy.avada.io

After that you should have your key written to etc folder. Then you can open the typesense-server.ini again and add these key location setting to it:

ssl-certificate=/etc/letsencrypt/live/search-joy.avada.io/fullchain.pem
ssl-certificate-key=/etc/letsencrypt/live/search-joy.avada.io/privkey.pem
sudo crontab -e

and then paste value: 0 0 * * 0 sudo certbot certonly --force-renew --standalone --preferred-challenges http -d search-joy.avada.io and save.