Map subdomain to specific service on app engine

自闭症网瘾萝莉.ら 提交于 2020-06-25 22:08:46

问题


I want to map notification.api.example.co.uk to a specific app engine service called notification-api

I've added a custom domain on app engine called api.example.com successfully, so was hoping the following dispatch.yaml would be sufficient:

dispatch:
  - url: "notification.api.example.co.uk/*"
    service: notification-api

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?


回答1:


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.



来源:https://stackoverflow.com/questions/52656490/map-subdomain-to-specific-service-on-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!