after droplet creating what the process of your amount getting of digital ocean?
502 bad getway error in nginx 1.10 /ubuntu please guide to resolve
my email id is
What type of application are you running? A 502 error generally indicates that nginx was unable to reach the upstream service needed to process the request. This can either be the php-fpm process for PHP sites or it could be another type of service using a proxy_pass configuration.
If this is a php site you can try:
service php-fpm restart