nhost / cli

Nhost CLI
https://docs.nhost.io/development/cli/overview
MIT License
77 stars 28 forks source link

feat: TLS for Nhost Run services #914

Open xmlking opened 2 months ago

xmlking commented 2 months ago

In development environment, some cases me might need to run some additional backend services (cache, custom API…) along with nhost services (GraphQL , auth, storage). I like to leverage same magicDNS benefits for custom services.

Ask

Please include some additional SNAs in the certs provisioned by nhost cli. E.g, *.app1.local.nhost.run , *.app2.local.nhost.run etc so we can access them via

https://local.app1.local.nhost.run/ https://local.app2.local.nhost.run/

[!NOTE]
HTTPS is also needed to try some web Features (Web Crypto, Service Workers, Notifications) for local development

### Tasks
dbarrosop commented 2 months ago

Hello, the issue is that format doesn't follow the format we use in the cloud but we should be able to do something like xdfp-192-168-1-123.svc.local.nhost.run, where xdfp is a short hash of the run service name.

xmlking commented 2 months ago

Thanks. sound good, this solution will work for multiple local Run services.
You can also consider adding optional backend port: e.g., xdfp-192-168-1-123-8080.svc.local.nhost.run