【问题标题】:Multitenant application domain names configurations in app engine应用引擎中的多租户应用域名配置
【发布时间】:2020-10-13 17:48:46
【问题描述】:

我在 Google App Engine 中开发了一个多租户应用程序,使用 Django Rest Framework(django-tenant-schemas) 和 Angular 前端作为软件即服务平台。我在本地购买了域名,并希望将多个域名映射到应用程序引擎资源,以便如果客户输入他的域 url,则角度获取 url 并从其数据库模式中检索内容。 我只配置了一个域名,我需要添加其他域名。有没有办法可以将所有域配置为指向应用引擎上的相同资源

【问题讨论】:

    标签: angular google-app-engine django-rest-framework dns googledns


    【解决方案1】:

    对于多租户应用程序,您可以使用 dispatch.yaml 配置文件,它允许您覆盖路由规则。您可以使用 dispatch.yaml 根据 URL 中的路径或主机名将传入请求发送到特定服务(以前称为模块)。相关详情可从dispatch.yaml Configuration File 页面收集。

    您可以查看对Multiple custom domains to specific version of Google App Engine app 问题的回复,以及参考页面Add a Custom Domain to the Specific Module of Google App Engine Managed VMs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-02
      • 2013-08-29
      • 2020-11-20
      • 2014-09-02
      • 2017-05-26
      • 2016-05-31
      • 2012-03-08
      • 2014-09-29
      相关资源
      最近更新 更多