I'm the CTO of international video agency Wooshii and I run an educational media brand called Skill Pathway. I also occasionally chat to people on my podcast, The Learning Developers Podcast.
You wouldn't create the subdomain on the fly, you'd simply use a wildcard subdomain (*.yourwebsite.tld) and point that to your webserver.
Depending on what backend framework you are using, you'd need to ingest the subdomain as a parameter and use the value from that to find the user (or throw a 404, of course)
oww.... that's interesting... i only knew about SSL wildcard certificat... this is sooo cool. Thank it solve my problem, am working with a NGINX + Gunicorn + Django Stack.. i can handle the domain name ingestion without problem... thank you for this.
I'm the CTO of international video agency Wooshii and I run an educational media brand called Skill Pathway. I also occasionally chat to people on my podcast, The Learning Developers Podcast.
Yup! This is essentially what anymessage does to generate the team subdomains. Feel free to checkout the code, if you'd like a node.js example: github.com/d3sandoval/anymessage
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You wouldn't create the subdomain on the fly, you'd simply use a wildcard subdomain (*.yourwebsite.tld) and point that to your webserver.
Depending on what backend framework you are using, you'd need to ingest the subdomain as a parameter and use the value from that to find the user (or throw a 404, of course)
Hope that helps!
oww.... that's interesting... i only knew about SSL wildcard certificat... this is sooo cool. Thank it solve my problem, am working with a NGINX + Gunicorn + Django Stack.. i can handle the domain name ingestion without problem... thank you for this.
Super welcome - glad it helped!
Hi Matthew,
Better to have single VM and single db running for each tenant? Or multitenant single db if that the case?
ie. Slack use subdomain with single db or multitenant db?
Wow. That was super easy solution. Thanks buddy.
But Where do I deploy my application? Will it be on main domain?
Yup! This is essentially what anymessage does to generate the team subdomains. Feel free to checkout the code, if you'd like a node.js example: github.com/d3sandoval/anymessage