MongooseIM icon indicating copy to clipboard operation
MongooseIM copied to clipboard

Deploying on AWS EC2

Open hashim-sohail opened this issue 4 years ago • 1 comments

MongooseIM version: 3.7.0 Installed from: pkg Erlang/OTP version:

Do you've any guide to use to setup it onto an EC2 instance, i've installed it following the get started guide but i don't have any idea on how to connect my client to deployed server.

hashim-sohail avatar Nov 02 '20 10:11 hashim-sohail

Hi Hashim,

Thanks for your interest in MongooseIM! Depending on where you are in your setup or reconnaissance, there are different ways to achieve what you want.

The simplest is just using the external domain name offered by Amazon - look it up by going to "EC2 -> Instances -> i-some-instance-id" and then check "Public IPv4 DNS". Once you have this, you can use it directly as the connection endpoint in your XMPP client. However, it's unlikely that your server is configured in its config file with this domain name (hosts option), so you have to make sure your JID (XMPP login name) matches the server config, but the client actually connects to the EC2's IPv4 DNS name.

Alternatively, you can set up a DNS name (for example AWS Route 53, but any DNS service will do) to point to that EC2's external DNS name and configure your domain name in the server config file appropriately. This will allow you to connect from web hosted client apps like https://conversejs.org/fullscreen.html which do not allow for specifying the XMPP domain name and the connection endpoint separately.

Please let me know if this clears things up.

erszcz avatar Nov 04 '20 10:11 erszcz

No activity.

chrzaszcz avatar Apr 26 '23 06:04 chrzaszcz