-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.yaml
59 lines (52 loc) · 2.09 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
runtime: python39
entrypoint: gunicorn -b :$PORT main:app -w 2 --timeout=300
instance_class: F4_1G
automatic_scaling:
min_idle_instances: 1
handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
# Add your Cloud Project ID to the Access-Control-Allow-Origin URL
- url: /static
static_dir: static
secure: always
redirect_http_response_code: 301
http_headers:
Access-Control-Allow-Origin: https://[PROJECT_ID].ew.r.appspot.com
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
SESSION_COOKIE_SECURE: true
SESSION_COOKIE_HTTPONLY: true
SESSION_COOKIE_SAMESITE: 'Lax'
# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
- url: /favicon\.ico
static_files: static/favicon.ico
upload: static/favicon.ico
inbound_services:
- warmup
env_variables:
SLIDE_TEMPLATE: "" #Google Slide template ID for the default template
# Add the following secrets to your Google Secrets Manager
# client_secret - Upload your client_secret.json file to this
# flask_secret_key - The secret key for your Flask instance
# developer_token - The developer token found in the API section of your google Ads account
# image_bucket - An open bucket for the images to be read externally (add a 1 day TTL) and stored by your service account