Can I set a friendly/custom/vanity domain for my development branches on the grid?
The information in this post is accurate as of the published date . Please make sure to check any linked documentation within the post for changes/updates.
I don’t like the look of the develop-fdn5g37-lsk5nfuysnbehv6.us-1.platformsh.site
sort of link that I get with my non-master branches, and I’d like something shorter and cuter, or easier to remember for my presentations.
Can I set it to be dev.myproject.org
instead?
-
The ability to add domains to a development environments on Platform.sh Grid is currently not supported, sorry.
There has been discussion of this as a feature request - “Vanity domains”, but it’s not currently possible for self-service or grid clients. For Dedicated accounts, this can be requested through your onboarding or account manager through a ticket, it may require some work if you manage your own SSL certificates.
Even if you managed your DNS to point
dev.myproject.org
at the platform.sh outer routers, it would not be directed internally to reach your project. Only registered production domains are routed in.You can add any number of aliases to your production instance at
Settings -> Domains
however.Some people have reportedly had success with setting up their own pass-through proxy to support this sort of effect, in cases where it was wanted for firewall or VPN rules, but that is not supported by Platform.sh support - you are on your own if you wish to set that up.
Alternatively, you may be able to set up a simple redirect on a placeholder domain from your cute URL to the ugly one, if you just want to be able to share a short or memorable link.0 -
Is this something that’s in the works? Or, just not going to happen anytime soon?
0 -
It looks like it’s still in the works, there has been an internal PR relating to this less that a month ago. But it appears to have been trickier than it sounds, as the existing architecture pins all the domain management as per-project attributes. Splitting that off to be able to manage domains per-branch instead is a major refactor, that breaks the API and UI as well. As a change like this cannot affect the thousands of already-running sites, activity on this needs to be very careful.
So, no, it’s not dead, but don’t hold your breath waiting for it.0 -
Hi, just checking if there are updates about this?
0 -
For those interested, you can vote for this feature and follow it here:
https://next.platform.sh/c/107-custom-domains-on-development-environments
0 -
The feature has been released and is available for Enterprise and Elite customers.
https://docs.platform.sh/domains/steps/custom-non-production-domains.html0 -
The feature has been released and is available for Enterprise and Elite customers.
https://docs.platform.sh/domains/steps/custom-non-production-domains.html
0 -
Go to your domain registrar’s website and update the DNS settings to point your chosen custom domain,
dev.myproject.org
to the relevant IP address or server provided by your hosting platform. for more detail
visit Doc.0
Please sign in to leave a comment.
Comments
8 comments