Typesense port protocol params#38
Conversation
|
@Bermudez0622 The reason we haven't allowed protocol to be configured in the extension is because the trigger functions run on Firebase and so we don't want calls to Typesense going over an unencrypted http connection via the public internet, to any Typesense Cluster, self-hosted or not... Are you able to setup an SSL cert on your self-hosted Typesense node and use the default 443/https. LetsEncrypt for example has free SSL certs. |
|
We are currently trying to use this extension using the I was about to submit this change as a PR myself before I found this one. Considering there are valid use cases for these parameters, which are available in the config file deployment method, it seems arbitrary to not include this in the newer better deployment method as well. Is there a way to check if the extension is running in a production or emulated environment and throw an error if https is not used appropriately? Doing this would enable local development with the sdk setup method and close the loophole of using the config files to enable unencrypted communication in production environments. |
Change Summary
If Typesense self hosted cluster is not running at 443 port, firestore will not sync changes

PR Checklist