Running home assistant and grafana both from SSL and have them remote accesable

Hi!

I’m trying to make it possible to acces my homeassistant and grafana both over SSL. This since I want to use push notifications and have grafana shown in iframe panels.

Home assistant is running with SSL fine and push notifications work. But I don’t seem to be able to make a let’s encrypt certificate for another port than 443.

My plan was to link 443 (remote) to 8123(local) for home assistant and link 80(remote) to 3000(local) for grafana. But I can’t make a certificate for example.duckdns.org:80 and the homeassistant certificate doesn’t work for grafana so it seems.

Would it work if I just buy an SSL certificate? Because this should support all ports right? Not like the let’s encrypt certificate.

Or are there any other ways to accomplish this?

Thanks!