Netlify API子域连接到Digitalocean液滴
目前,我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论