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
297 Views Asked by Dev At
1
You want to set the
--api-addressand--peering-addressto127.0.0.1to 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