-
Notifications
You must be signed in to change notification settings - Fork 5
/
app.yaml_template
65 lines (57 loc) · 2.18 KB
/
app.yaml_template
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
60
61
62
63
64
65
# [START django_app]
runtime: python310
# For the live site, comment the following line (it uses the default service value 'default')
service: <service_name>
handlers:
# This configures Google App Engine to serve the files in the app's
# static directory.
- url: /static
static_dir: static/
# This handler routes all requests not caught above to the 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
# Only for the deployment of the live website, to keep 1 instance always on.
# For other websites you can:
# - comment the 'inbound_services' block,
# - comment the 'min_idle_instances' and 'max_idle_instances' lines
# - set 'max_instances: 2'
inbound_services:
- warmup
automatic_scaling:
min_instances: 1
max_instances: 4
min_idle_instances: 0
max_idle_instances: 1
env_variables:
SECRET_KEY: <django_secret_key>
DEBUG: '<False_or_True>'
PGS_LIVE_SITE: '<False_or_True>' # Need to be set to True for live website
PGS_CURATION_SITE: '<False_or_True>' # Line optional: Only used for the curation website
ALLOWED_HOSTS: '*'
# PGS database #
DATABASE_NAME: '<db_name>'
DATABASE_USER: '<db_user>'
DATABASE_PASSWORD: '<db_password>'
DATABASE_PORT: '<db_port>'
DATABASE_PORT_LOCAL: '<db_port_local>'
DATABASE_HOST: '<db_host>' # e.g.: localhost, IP address, /cloudsql/...
# PGS Benchmark database
DATABASE_NAME_2: '<benchmark_db_name>'
DATABASE_USER_2: '<db_user>'
DATABASE_PASSWORD_2: '<db_password>'
DATABASE_PORT_2: '<db_port>'
DATABASE_PORT_LOCAL_2: '<db_port_local>'
DATABASE_HOST_2: '<db_host>' # e.g.: localhost, IP address, /cloudsql/...
# Curation Tracker database #
DATABASE_NAME_TRACKER: '<db_name>' # e.g.: pgs_curation_tracker
DATABASE_USER_TRACKER: '<db_user>'
DATABASE_PASSWORD_TRACKER: '<db_password>'
DATABASE_PORT_TRACKER: '<db_port>'
DATABASE_PORT_LOCAL_TRACKER: '<db_port_local>'
DATABASE_HOST_TRACKER: '<db_host>' # e.g.: localhost, IP address, /cloudsql/...
# Search
ELASTICSEARCH_URL_ROOT: '<url_to_elasticsearch_service>'
# [END django_app]