【发布时间】:2021-04-25 23:22:30
【问题描述】:
我正在部署我的系统、使用 GitHub 的 Angular 前端和谷歌云平台中的整个后端 - App Engine、SQL、Elasticsearch 等。正如我在 GitHub 设置中检查的那样,Https 似乎在网站和客户端之间正常工作Enforce HTTPS。但是,我不确定是否在 Angular 应用程序和部署在 App Engine 中的 Django API 之间进行了正确配置。任何人都可以查看配置并确认一切都正确完成吗?我想尽可能安全地做所有事情。用户门户应该可以从 example.com 和 www.example.com 访问,App Engine 上的 Django API 可以从 api.example.com 和 www.api.example.com 访问。此外,也许您对我还能做些什么来增加保护有任何额外的安全提示或建议?
名称便宜:
谷歌应用引擎:
更新
更新部署在 Google App Engine 上的后端和前端配置
dispatch.yaml:
dispatch:
- url: "api.example.com/"
service: backend-service
- url: "www.api.example.com/"
service: backend-service
- url: "api.example.com/*"
service: backend-service
- url: "www.api.example.com/*"
service: backend-service
- url: "*/*"
service: frontend-service
【问题讨论】:
-
您的配置看起来不错,但是,我不明白为什么
www和裸域注册在应用引擎的自定义域上,根据您的描述,前端将与 Github 一起使用。
标签: django angular google-app-engine ssl https