Thank you for the content. One of the pieces I'm misunderstanding is how do I redirect to a different server? lets say I want to build a TLS check + redirect service using caddy to check if a subdomain is allowed but I don't want to share this server (EC2) with the actual application. Also, would it be appropriate to have the TLS check service call a db to check for the domain if we didn't want to manually add/redeploy the TLS check service? I'm working on building a multi tenant app so I'm trying to piece things together. Much appreciated for the help.
It will handle all redirect requests. I could just send the redirect request to the Next app, but that would make it harder to allow the user to bring their own domain
Great video, thanks! 😀 Do you have any recommendations for how to setup a load balancer? Also what are the advantages of using the tls-check service as opposed to just manually adding the domains to the Caddyfile?
You can use Caddy as a load balancer, but it really depends what services you are already using. DigitalOcean & AWS have LB options. You could hard code the domain, but that would defeat the purpose of doing it this way. The reason you'd use a tls-check service is so you can add domains without having to update your config file
A domain just points somewhere...doesn't host anything. For your own domain, would just point it wherever you're actually hosting the app, e.g. Azure App Service or maybe an AWS EC2 load balancer. For the domains you don't own (e.g. multi-tenant domains), clients don't host anything if they're just white labeling your service. They will just point to your Caddy auto-signer which will, as with your own domain, proxy to your service running somewhere. Basically any domain just points to the location that will accept the incoming request. What you do with that request and the infrastructure you use to support it is your own design decision.
More go videos please, this is really good I appreciate it
Youre videos and vibe are awesome tom! Thank you for sharing all the good stuff and Happy new year!
Thank you for the content. One of the pieces I'm misunderstanding is how do I redirect to a different server? lets say I want to build a TLS check + redirect service using caddy to check if a subdomain is allowed but I don't want to share this server (EC2) with the actual application. Also, would it be appropriate to have the TLS check service call a db to check for the domain if we didn't want to manually add/redeploy the TLS check service? I'm working on building a multi tenant app so I'm trying to piece things together. Much appreciated for the help.
a question, this is for lan local network????????????????????????????????????????????
So what’s the point of the redirect service? Does it just act as some type of reverse proxy for where vercel hosts your app behind the scenes?
It will handle all redirect requests. I could just send the redirect request to the Next app, but that would make it harder to allow the user to bring their own domain
Valeu!
Thank you so much!
Happy to see you're still making great content. I am not active on Discord anymore but thank you for always supporting me Tom :)
Dude, that's so nice of you. Hope you're doing well Sid!
Great video!
we need a node version PLEASE!
+1
+1
+1
Thank you for such an amazing video. Please make more advanced videos on Express with TypeScript
love from nepal
nice one tommo :)
Thanks 😁
Instead of just listing domains I want to allow, could I allow any domain that is pointed at my server?
Yeah, have the TLD check always return a 200 and you're good to go
Alright, Thank you.@@TomDoesTech
Great video, thanks! 😀
Do you have any recommendations for how to setup a load balancer?
Also what are the advantages of using the tls-check service as opposed to just manually adding the domains to the Caddyfile?
You can use Caddy as a load balancer, but it really depends what services you are already using. DigitalOcean & AWS have LB options.
You could hard code the domain, but that would defeat the purpose of doing it this way. The reason you'd use a tls-check service is so you can add domains without having to update your config file
So now that my domain is pointing to the IP and has an SSL cert, how am I hosting my app on that same URL?
A domain just points somewhere...doesn't host anything. For your own domain, would just point it wherever you're actually hosting the app, e.g. Azure App Service or maybe an AWS EC2 load balancer. For the domains you don't own (e.g. multi-tenant domains), clients don't host anything if they're just white labeling your service. They will just point to your Caddy auto-signer which will, as with your own domain, proxy to your service running somewhere. Basically any domain just points to the location that will accept the incoming request. What you do with that request and the infrastructure you use to support it is your own design decision.