By pgmLeo
Hello,
I just created an Ubuntu-14.04 droplet on digital ocean. I then deployed an application that used to previously run on my desktop. On my test laptop the App was running on localhost. Client used to open websocket connections to localhost.
Now I have deployed app to DigitalOcean Droplet and would like client to connect to App using the same method. I have verified that my application runs on Digital Ocean but does not accept incoming connections.
What are the minimum components that I need to install on my droplet ? – Deploy App (yes) – HTTP server/Load Balancer (?? not sure) – What else is needed ??
What URL should my client use if I need to connect to my App running on the DigialOcean droplet ?
Does my Client need to use secure websockets to make sure that it gets to my App ? I would initially like to use ordinary websockets (not secure) to begin with and switch to secure websockets when development has progressed enough. Basically I want to address all security concernes at a later time after basic application is running.
Any pointers or information to my above 3 questions will be highly appreciated.
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
1. You could set up Nginx as a websocket proxy. Be sure to set the appropriate HTTP headers:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2. The URL depends on your proxy setup, if there is nothing else on port 80, you can just use the IP of your Droplet, or whatever domain (or subdomain) you have delegated to that IP address.
3. SSL is not necessary as far as I know.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.