问题
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