googleapis / google-cloud-node

Google Cloud Client Library for Node.js
https://cloud.google.com/nodejs
Apache License 2.0
2.92k stars 592 forks source link

serving nodejs app with custom domain fails with server not found #1919

Closed isawk closed 7 years ago

isawk commented 7 years ago

We have an application built with angular2, served using nodejs/express. Application works as expected locally and on cloud engine through project-id.appspot.com domain, however trying to reach application through custom domain fails with "Server not found" error.

custom domain *.dev.example.com has been configured for project-id, all other services are reachable and work, default services serving nodejs application fails with error "Server not found"

Environment details

Steps to reproduce

  1. Create google cloud project
  2. Setup and deploy nodejs app
  3. Configure customer domains with wildcard e.g. *.dev.example.com
  4. Try reach default services serving nodejs application from dev.example.com

app.yaml

runtime: nodejs
env: flex
skip_files:
- ^node_modules$
- ^app\.yaml
- ^README\..*
- \.gitignore
- ^\.git$
- ^grunt\.js
- ^src$
- ^e2e$
- \.editorconfig
- ^karma\.config\.js
- ^protractor\.conf\.js
- ^tslint\.json
isawk commented 7 years ago

Seems one has to tell Google about ever single domain they would like white listed. Any indication when flex environment is planned for production? https://support.google.com/cloud/contact/gae_flex_custom_domain