HTTPS and HTTP

Hi,
In my HA configuration I have the option to start HA in a webbrowser with HTTPS and HTTP. That is nice. But what I want is that the HA app starts in HTTPS and when Duckdns is down like it did a vew weeks earlier I still want the app to startup in HTTP mode. Is that possible? And how do I do that?