If there is a certificate and key in /etc/ssl/gokrazy-web.{pem,key.pem}, the webinterface will serve and redirect to https.