bridgy-fed/app.yaml

51 wiersze
1.1 KiB
YAML
Czysty Zwykły widok Historia

2017-08-12 23:51:48 +00:00
# https://cloud.google.com/appengine/docs/standard/python/config/appref
# application: bridgy-federated
runtime: python39
# default_expiration: 1h
2017-08-12 23:51:48 +00:00
# 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
2017-08-12 23:51:48 +00:00
# background: https://github.com/snarfed/bridgy/issues/578
2021-07-06 03:54:23 +00:00
# https://github.com/snarfed/bridgy/issues/1051
automatic_scaling:
max_idle_instances: 1
target_cpu_utilization: .9
min_pending_latency: 3000ms
max_concurrent_requests: 30
inbound_services:
- warmup
2017-08-12 23:51:48 +00:00
handlers:
# static
- url: /static
static_dir: static
secure: always
2017-08-12 23:51:48 +00:00
- url: /oauth_dropins_static
static_dir: oauth_dropins_static
2022-11-13 07:19:09 +00:00
- url: /fonts
static_dir: oauth_dropins_fonts
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
secure: always
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
secure: always
2017-08-12 23:51:48 +00:00
# dynamic
- url: .*
script: auto
secure: always