我想将notification.api.example.co.uk映射到名为notification-api
我已经在应用引擎上成功添加了一个名为api.example的自定义域,因此希望以下dispatch.yaml就足够了:
I've added a custom domain on app engine called api.example successfully, so was hoping the following dispatch.yaml would be sufficient:
dispatch: - url: "notification.api.example.co.uk/*" service: notification-api因此,我希望任何请求,例如到notification.api.example.co.uk/test-api的POST都可以将请求路由到服务并提供响应,但它根本不会到达后端.
I was hoping, therefore, any request, for example, a POST to notification.api.example.co.uk/test-api would route the request to service and render a response, but it doesn't reach the backend at all.
此路由中是否存在错误,文档令人困惑?
Is there something wrong in this routing, the docs are quite confusing?
推荐答案您需要映射通配符子域到您的应用程序引擎.我们需要知道api.example.co.uk的所有内容都将转到您的应用中,以便将notifications.api.example.co.uk路由给您.
You need to map a wild card subdomain to your app engine. We need to know that everything for api.example.co.uk goes to your app in order to route notifications.api.example.co.uk to you.
更多推荐
将子域映射到App Engine上的特定服务
发布评论