Reputation: 7835
All over the internet there are tons of posts about this, but no answers.
In my Rails app running on Heroku, can I allow my Users to add their own Custom Domains automatically? Does Heroku allow this?
Upvotes: 15
Views: 2082
Reputation: 37507
Yep, it's definitely possible - you have to use the Heroku gem within your application and when they add domains you need to make an API call to add their chosen custom domain to your application.
If you want to be able to use SSL it won't work AFAIK because you can only have one SSL addon per app - however, subdomains are easier since you can do a wildcard subdomain and then it's also possible to use a wildcard SSL on your domain without having to involve making API calls and you then don't have to get your clients edit their DNS to point at your application.
Upvotes: 6
Reputation: 411390
Here's one solution to allow this:
Upvotes: 6