问题原文
原帖链接 · Jon Tan · CC BY-SA 4.0
I currently have my NextJS site and my domain hosted with Vercel, which provides a SSL certificate for my domains.
My web application is on mydomain.com
and my backend domain is backend.mydomain.com
Since my backend is in EC2, I tried to set up a AWS Load Balancer to make HTTPS requests from my frontend to backend.
Should I set up a HTTP/HTTPS load balancer, or a TCP load balancer? AWS keeps asking for my certificate, but I do not have it, since the details are hidden from my by Vercel.
Will I have to contact them to get more details?
已采纳解答
原帖链接 · Tim · CC BY-SA 4.0
From what you've said your front end is hosted by Vercel, your back end by EC2. They're completely independent from a load balancing / certificate point of view.
I suggest:
- Create a certificate for your back end server using AWS Certificate Manager (ACM). Alternately you can import an existing SSL cert into ACM, but then it won't re-issue automatically.
- Create an AWS Application Load Balancer, and associate it with the new ACM cert
- Ensure your load balancer directs traffic to your EC2 instance. You can use auto scaling or do it manually, your call.
In comments you mentioned you can't use ACM because you already have a cert issued elsewhere. You can have multiple CAs issue a certificate for the same domain. If you're having a problem with certificate issuing please create another question that's much more detailed.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
