-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathapp.yaml
38 lines (29 loc) · 989 Bytes
/
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
# https://cloud.google.com/appengine/docs/standard/python3/config/appref
# application: granary-demo
# default_expiration: 1h
runtime: python39
# https://cloud.google.com/appengine/docs/standard/python3/runtime#entrypoint_best_practices
# https://docs.gunicorn.org/en/latest/settings.html#timeout
entrypoint: gunicorn --workers 1 --timeout 300 -b :$PORT app:application
# background: https://github.com/snarfed/bridgy/issues/578
automatic_scaling:
max_idle_instances: 1
max_concurrent_requests: 12
max_pending_latency: 100ms # default is 30
handlers:
- url: /(static/bootstrap.*\.css)
static_files: oauth_dropins/\1
upload: oauth_dropins/static/bootstrap.*\.css
- url: /static
static_dir: static
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
- url: /oauth_dropins/static
static_dir: oauth_dropins/static
- url: .*
script: auto
secure: always