How to redirect http to https on digital ocean droplet?

Thanks for the reply.
I’m new to docker/discourse/RoR so not sure what exactly it uses underneath?
What does discourse use as web server? nginx or apache? Can’t we redirect subdomain from any config file?