I am trying to host typesense
in a self-hosted virtual machine. I don't want to expose the typesense
to the public. I want to restrict access from localhost
only. How can I restrict the typesense
from accessing outside?
Restrict typesense to localhost only
284 Views Asked by Dev At
1
You want to set the
--api-address
and--peering-address
to127.0.0.1
to ensure that Typesense is only listening for inbound connections from localhost.These two parameters are documented here: https://typesense.org/docs/0.23.1/api/server-configuration.html#using-command-line-arguments