3 ms·
I don't develop at the same URL as I publish at - I'll generate keys with mkcert and host my site locally via a proxy at local.realdomainhere.com for a site tha
by llimllib 5y ago
I don't develop at the same URL as I publish at - I'll generate keys with mkcert and host my site locally via a proxy at local.realdomainhere.com for a site that has dev.realdomainhere.com and the prod domain www.realdomainhere.com.
- tomashubelbauer 5y agoI see, I misunderstood. My dream setup is one where I have the same URL for TEST/STAG/PROD and just switch which BE the URL resolves to based on some configuration/tool.
- Jiocus 5y agoI have a certain workflow similar to this. 1. Let testing/staging environments present the same, valid certificates and keys as your production domain. Simply keep a copy for your internal use. 2.1 modify /etc/hosts so that production aliases localhost or 2.2 let an internal DNS service do the spoofing work. You'll still need some action to switch between environments. Full ownership of certificates is a recommendation. At your own risk.