Netlify API子域连接到Digitalocean液滴

发布于 2025-01-25 07:32:54 字数 775 浏览 2 评论 0原文

目前,我的Web应用程序的前端在通过Netlify托管的Google域上运行。我也想在同一站点上托管我的应用程序的后端部分,但是不同的子域(例如 www.webapp.com (客户端)&& api.webapp.com(服务器)。我目前正在尝试将api.webapp.com NetLify子域与我在数字海洋上的后端(NGINX反向代理)连接起来,但是很难让我的液滴连接到API子域。这甚至可能吗?感谢任何见解,谢谢!

目前正在尝试获取Certbot(让我们的Encrpyt)认证我的服务器,但我认为我会遇到错误,因为API网站不是www。

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: api.webapp.com
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up A for api.webapp.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for api.webapp.com - check that a DNS record exists for this domain

I currently have the frontend of my web application running on a Google domain hosted via Netlify. I would like to also host the backend portion of my application on the same site, but different subdomain (eg. www.webapp.com (client) && api.webapp.com (server)). I am currently trying to connect the api.webapp.com Netlify subdomain with my backend on Digital Ocean (Nginx reverse proxy) but am having trouble getting my droplet to connect to the api subdomain. Is this even possible? Would appreciate any insight, thanks!

Currently trying to get certbot (Let's Encrpyt) to certify my server but I think I'm getting an error because by api site is not a www.

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: api.webapp.com
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up A for api.webapp.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for api.webapp.com - check that a DNS record exists for this domain

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文