bridgy-fed/app.yaml

55 wiersze
1.2 KiB
YAML

# https://cloud.google.com/appengine/docs/standard/reference/app-yaml?tab=python
# application: bridgy-federated
runtime: python311
# 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 30 --timeout 60 -b :$PORT app:app
# background: https://github.com/snarfed/bridgy/issues/578
# https://github.com/snarfed/bridgy/issues/1051
automatic_scaling:
max_idle_instances: 1
target_cpu_utilization: .9
min_pending_latency: 500ms
max_concurrent_requests: 30
inbound_services:
- warmup
env_variables:
PLC_HOST: plc.directory
APPVIEW_HOST: bsky.social # this is the PDS. TODO: where's the prod AppView?
handlers:
# static
- url: /static
static_dir: static
secure: always
- 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
secure: always
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
secure: always
# dynamic
- url: .*
script: auto
secure: always