typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.98k stars 424 forks source link

Use default domain's subdomains for differenent sites #276

Open mehrdad-shokri opened 6 years ago

mehrdad-shokri commented 6 years ago

Is it possible to use app1.hotel.localhost instead of app1.localhsot?
I'm using self-signed certificates so I can't create certificates per domain?

I've tried ''hotel add -n app1.hotel 'cmd'`` but no luck

typicode commented 6 years ago

Hi @mehrdaad,

Not sure what the issue is with app1.localhost actually? If you go to https://app1.localhost, hotel will use its generated self-signed certiticate. You'll need to add an exception for it in your browser and it should work.

mehrdad-shokri commented 6 years ago

@typicode Actually, the generated self-signed certificate isn't true too!!
It doesn't have a SAN (which is required in chrome from 58 i think).
So I generated another key.pem and cert.pem and replace with the new one but the problem is it is generated for hotel.localhost, so app1.localhost is not recognized with my certificate. so what I want to have app1.hotel.localhost app2.hotel.localhost, then I don't have to generate several certificates(Although I won't be able since hotel requires a static certificate.)