If your website is using https, then you cannot make http calls. There are two ways to tackle this.
- You should create an ssl certificate and start rasa server using ssl. [HTTPS for RASA]
- You can use Nginx as a reverse proxy to redirect calls to an http rasa server.
For the second approach, you can add the following location section under your server config section ins nginx config file.
location ~ ^/rasa([^\?]+)(\?.*)? {
resolver 127.0.0.11 valid=30s;
set $rasa_server http://rasa:5005$1?$args;
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass $rasa_server;
proxy_read_timeout 300;
}
This will pass all requests coming to your_domain/rasa to the rasa server (in my case a docker container listening to port 5005). If there are any arguments, then they are also passed. (you’ll need this for socket.io over https)