Hi,
I want to run my app on whatever port i want in droplets. I do not want to run it on 80 or 443.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
First thing. you need to do the redirecting not on Load balancer but on Droplet level. second the Digital ocean load balancer does not support HTTP2 which is a game changer.
The load balancer doesnt redirect traffic from https to https but does the translation. customer will still use http and you are sending traffic on https(443) but only to load balancer.
You need to setup a reverse proxy using Nginx with http2 protocol and it will redirect the traffic as well and also does the load balancing on different algorithms. Plus you get the detail log of all instance behind it. It also does the micro cashing and provide a very strong layer of security using it NAXSI module. DOS and DDOS attacks are very common now days.
if you need help in managing your infrastructure you can contact superdevop.com any time