-
Notifications
You must be signed in to change notification settings - Fork 64
Description
the twilio-run command hostname is currently hardcoded to localhost. This needs to be configurable to allow development in situations such as development in a docker container or behind a reverse proxy.
Digging through the source it doesn't appear that there is any such flag available, but if we can get the config.url value into the process, most everything else is written to accommodate it. There already is a property url on the config object. it should be as easy as checking for the existence of the flag and defaulting to it rather than hard coding the previous value.
I started working to add the feature, but I'm not familiar with the testing setup, and don't really want to polish it up if it's something the maintainers aren't open to. It likely would require a bit of a refactor considering getUrl() has the side effect of potentially running its own ngrok, so the ngrok stuff would need to be moved to the app boot process instead.
why not just use ngrok?
- I often want to work on something not exposed to the world
- local development without internet
- I already have my own ngrok setup
- I don't feel like sharing ngrok domains, or re-configuring free ones every time I run it
thoughts
Previously the app was listening on all interfaces, and that was fine. I get the security concerns and that's valid, but the way to remedy is to allow it to be configurable, not remove the functionality entirely.
Are the maintainers omitting this feature intentionally, or would this be a feature likely to be merged?