Secure Sites created with port based multi tenancy

Hi All,
I have created multiple sites with port based multi tenancy.
I have 3 sites created with actual domain and they work fine with the respective ports .
For example -
site1.com:80
site2.com:81
site3.com:82

However I would want to secure each of these sites using SSL.
How do I do the needful?. I would prefer to have a single port open like 443.

Expectations
https://site1.com:443

https://site3.com:443

Kindly advise!

Thanks

It sounds like you don’t actually want port-based multitenancy. Have you tried dns-based multitenancy?

https://docs.frappe.io/framework/user/en/bench/guides/setup-multitenancy

Hi Peterg,

As far as I understand, DNS based multi tenancy is where I have a primary domain setup and I can setup subdomains
For Example -
Site1.domain.com
Site2.domain.com

I have individual primary domains setup pointing to the same server’s public IP.
For example
Domain1.com → Server IP
Domain2.in → Server IP
Domain3.xyz.site.com → Server IP
Can I do DNS based multi tenancy in such scenarios ?

Please note that I have been successful in getting port based multitenancy setup ready but without SSL.

Kindly advise!

DNS multitenancy works for both domains and subdomains.

Oh I see.
So is there a way, I can convert sites from port based multitenancy to dns based multitenancy?

Thanks