-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_engine.yaml
58 lines (43 loc) · 1.2 KB
/
app_engine.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
# Example file for deploying to Google App Engine
runtime: python38
service: default
instance_class: F1
# Automatic scaling example
# https://cloud.google.com/appengine/docs/standard/python3/config/appref#automatic_scaling
# automatic_scaling:
# max_concurrent_requests: 60
# max_instances: 3
# max_pending_latency: 8s
# min_pending_latency: 6s
entrypoint: gunicorn -b :$PORT --workers 2 --timeout 60 --log-level info web.wsgi:application
inbound_services:
- warmup
handlers:
- url: /static/node_modules
static_dir: node_modules
- url: /static
static_dir: static
- url: /js
static_dir: static/js
- url: /css
static_dir: static/css
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /.*
secure: always
script: auto
vpc_access_connector:
name: projects/[project id]/locations/[region]/connectors/[connector name]
env_variables:
DEBUG: 'False'
DJANGO_SETTINGS_MODULE: web.settings
SECRET_KEY: 'secret'
API_ROOT: 'http://localhost:8081/v1'
# DB config
DATABASE_HOST: '/cloudsql/[project id]:[region]:[db name]'
DATABASE_PORT: '5432'
DATABASE_USER: 'rtcuser'
DATABASE_PASSWORD: 'rtcuser'
DATABASE_NAME: 'rtcstats'
CONN_MAX_AGE: '14400'