DEV Community

Discussion on: How to create sub-domain automatically when users register on my SaaS application ?

Collapse
 
ikennaobieze profile image
Paschal Jeremy • Edited

You have gotten lots of advice already but I feel an important part is left out - using a load balancer.

You can configure Nginx to handle this then instead of calling Cloudflare API as suggested above, just point the wildcard to Nginx.
From there, you can do whatever you want with the resulting traffic - authenticate it, redirect to another microservice - anything you want.