Custom subdomain per user
-
I am working on an app where users can create a profile page using a custom subdomain.
How would I handle routing? Do I have to use the cloudron API to add the subdomain to the app every single time? Do I set up a subdomain wildcard for my domain? Or is there any other solution for this?
-
-
uou could use wildcard aliases like in https://docs.cloudron.io/apps/#aliases . i.e All of
*.userpages.comis redirected then to your app. Your app's route handler should then validate the hostname checking the Host header of the http request .
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login