Here's what I want to do. I know I can't do everything; I'm looking to see how close I can get or if anyone has a creative solution.
The goal is to make it so I can deploy HTML+CSS+JS to dynamicsubdomain.example.com. The HTML/CSS/JS has no knowledge it's going to be deployed like this, and any included CSS+JS+images will be using a relative URL.
- Host HTML files somewhere dynamic so I can check they are logged in before displaying the HTML. The HTML isn't dynamic; I just need to make sure they are verified before displaying it. If I could host the HTML on a CDN and verify it somehow, that would be better.
- Host static files (like CSS+JS+images) on a CDN. However, these should be accessible via a relative URL.
- Every site (lots of them) are going to be on a different subdomain. So, I think I need wildcard DNS. (I'm open to other solutions.)
What's the best setup to get as much of this as possible?