Bipul
(Bipul)
March 3, 2020, 12:00pm
1
I am facing a problem during the connection of Rasa on Facebook.
Problem 1:
I have an SSL certificate, which is in the “.jks” format, So how to use this file to run rasa in secure mode for Facebook.
I am using this command to run rasa -
sudo rasa run --log-file out.log --enable-api --ssl-certificate filename.jks --ssl-keyfile filename.jks --port 443 --cors ‘*’
Problem 2:
I have a server which already serving one service on port “443” then how can I make to run rasa on the same port to make
“https”.
stephens
(Greg Stephens)
March 5, 2020, 6:16pm
2
You can use nginx to address both the SSL certificate and change the port. There’s a good post on the nginx SSL configuration. Here’s a fragment from the config I use for this:
server {
listen 443 ssl;
server_name test.org;
access_log /var/log/nginx/test.access.log;
error_log /var/log/nginx/test.error.log debug;
ssl_certificate /etc/letsencrypt/live/test.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/test.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location /webhooks {
proxy_pass http://10.1.1.3:5005/webhooks;
}
location / {
proxy_pass http://10.1.1.2:4000;
}
}
Bipul
(Bipul)
March 12, 2020, 4:23am
3
Thanks for your response.
But I don’t want to use nginx.
Is there any other way?