{
"name": "citation-generator",
"version": "4.1.0",
"main": "server.js",
"scripts": {
"start": "node server.js",
"postinstall": "gulp --production"
},
...
}
runtime: nodejs
env: flex
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
env_variables:
FOO: "BAR"
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
Note that environment variables defined in app.yaml aren’t intended to be made available on the Container Builder during the App Engine flexible deployment process. One of the often used reasons for environment variables is for secrets. They are then being persisted for anyone who can access the image at a later date.
A workaround can be writing your own Build Requests for Container Builder, which allows you to specify environment variables, and then deploying the built images to App Engine.
You can also pass these variables to Cloud Builder in the `env` portion of the BuildStep that needs them.
For the issue on the secure handler, I recommend to post your full detailed question to Stack Overflow, using the supported Cloud tags since Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical questions.