I have a Rails app that supports sub-domains right now. Users can have URLs like abc.myapp.com
. The SSL is provided using Let’s Encrypt Wildcard Certificate for *.myapp.com
.
Now, the app needs to be mapped to another domain according to the user’s preference. Like, users must be able to map abc.myapp.com
to hello.otherapp.com
With Let’s Encrypt.
Here are some references for what I am talking about: https://support.freshdesk.com/support/solutions/articles/227540-can-i-use-a-vanity-url-custom-domain-for-my-customer-portal- https://help.canny.io/en/articles/1355038-setting-up-your-custom-domain
My stack is: 1. Ruby on Rails 2. Nginx 3. Let’s Encrypt