MongooseIM
MongooseIM copied to clipboard
Deploying on AWS EC2
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.
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.
No activity.