How to redirect http to https mender-api

Hello,

I have the self-hosted mender running on aws. eg URL: mender.myiotproject.link.

Using https works fine, https://mender.myiotproject.link.
If I try to use http, http://mender.myiotproject.link, I expect the openresty to redirect it to https. But it’s not happening. I looked into the nginx config and see that the config to redirect is already present.

Should I need to configure something additional to redirect http to https for the mender URL?

Thanks & Regards,
Vinoth

Can you give more details as to what redirect address your browser is being handed.

You might want to use curl/wget to get more verbose logging on what’s happening.