Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure the host address for rasa run #8469

Closed
bastbnl opened this issue Apr 14, 2021 · 4 comments
Closed

Configure the host address for rasa run #8469

bastbnl opened this issue Apr 14, 2021 · 4 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR

Comments

@bastbnl
Copy link
Contributor

bastbnl commented Apr 14, 2021

I've been playing around with rasa open source edition on a classic vm, using a virtualenv for installation. I'm impressed.

I tried to figure out how to start rasa on a specific address instead of just localhost -- which appears to be every network interface and I was unable to find a way to configure the interface for rasa open source edition other than listing a port number at startup. I didn't find anything for the address. Inspecting the code learned me that starting rasa using rasa run -p 1531 will make the Sanic webserver listen on every interface using that specific port number.

The reason why I want to start RASA on a specific address is that I can limit access to the service by making rasa listen on a VPN interface, thus making it available to every machine on the VPN. I could probably archieve the same using a firewall and I may add one later on, but I figured being able to limit the netwerk interfaces would be a quick win.

A not-so-quick google search showed multiple questions surrounding this feature, so I'm adding a PR including just that.

@bastbnl bastbnl added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR labels Apr 14, 2021
@sara-tagger
Copy link
Collaborator

Thanks for submitting this feature request 🚀 @samsucik will get back to you about it soon! ✨

@samsucik
Copy link
Contributor

I'll let @degiz deal with this one (if there's anything to be said), since he's assigned as a reviewer on the actual PR 🙂

@degiz
Copy link
Contributor

degiz commented Apr 26, 2021

Hey @bastbnl
If you need a "production" version of Rasa Open Source, then you probably want to deploy it with docker, and then use a reverse proxy to do the networking for you, for example nginx.

@bastbnl
Copy link
Contributor Author

bastbnl commented Apr 26, 2021

Thanks for the advice, @degiz. It's probably better to run it in a docker container, but I'm currently running from a virtualenv and I guess this change would benefit others too.

Is there a link to the recommended production install btw?

@TyDunn TyDunn closed this as completed May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

No branches or pull requests

5 participants