6 ms·
How do you generate that unique endpoint? Do you have some worker that generates https config? Whats your magic ?
by mandaputtra 6y ago
How do you generate that unique endpoint? Do you have some worker that generates https config? Whats your magic ?
- q3k 6y agoNot the author, but there's no config that needs to be generated. Just run a HTTPS server with a wildcard cert that serves all traffic from a wildcard 'vhost' *.example.com to your application code. Then, your application can just look at the Host header to see which 'endpoint' it should serve.
- bozly 6y agoyep, that's exactly it :) - I'm using an ALB on AWS to manage the incoming requests
- mandaputtra 6y agoThanks! So I dont need to register every sub-domain? I thought that I must register every sub domain name on my DNS config.
- bozly 6y agoWildcard DNS records (i.e. `*.example.com`) are your friend in situations like this :)
- pritambarhate 6y agoThis StackOverflow post explains how it can be done with Nginx: https://stackoverflow.com/questions/12950572/nginx-wildcard-proxy-pass-subdomain-to-the-server-upstream-proxy https://stackoverflow.com/questions/12950572/nginx-wildcard-...