-
Notifications
You must be signed in to change notification settings - Fork 56
/
app.yaml
51 lines (39 loc) · 1.2 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
# https://cloud.google.com/appengine/docs/standard/python3/config/appref
# application: brid-gy
runtime: python312
# default_expiration: 1h
# 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 --threads 10 --timeout 60 -b :$PORT app:app
# background: https://github.com/snarfed/bridgy/issues/578
# https://github.com/snarfed/bridgy/issues/1051
automatic_scaling:
# i tried this in feb 2020 and it increased frontend costs by $1-1.50 per day
# min_instances: 1
max_idle_instances: 1
target_cpu_utilization: .9
min_pending_latency: 100ms
max_concurrent_requests: 30
inbound_services:
- warmup
handlers:
# static
- url: /static
static_dir: static
- url: /oauth_dropins_static
static_dir: oauth_dropins_static
- url: /fonts
static_dir: oauth_dropins_fonts
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /.well-known/security.txt
static_files: static/security.txt
upload: static/security.txt
# dynamic
- url: .*
script: auto
secure: always