Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by mandaputtra on Tuesday May 05, 2020 @09:17AM
(#23079682)
How do you generate that unique endpoint? Do you have some worker that generates https config? Whats your magic ?
[ Parent
| on HN ]
Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by q3k on Tuesday May 05, 2020 @09:22AM
(#23079742)
Not 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.
Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by mandaputtra on Wednesday May 06, 2020 @05:19AM
(#23089189)
Thanks! So I dont need to register every sub-domain? I thought that I must register every sub domain name on my DNS config.
Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by bozly on Thursday May 07, 2020 @03:31AM
(#23100630)
Wildcard DNS records (i.e. `*.example.com`) are your friend in situations like this :)
Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by bozly on Tuesday May 05, 2020 @09:27AM
(#23079787)
yep, that's exactly it :) - I'm using an ALB on AWS to manage the incoming requests
Re:Show HN: Endpoints.dev – Pastebin for HTTP Requests
by pritambarhate on Tuesday May 05, 2020 @10:24AM
(#23080306)
This StackOverflow post explains how it can be done with Nginx: https://stackoverflow.com/questions/12950572/nginx-wildcard-...