2024-05-24 03:40:54 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python
|
|
|
|
#
|
|
|
|
# gcloud -q app deploy --project bridgy-federated router.yaml
|
|
|
|
|
|
|
|
# application: bridgy-federated
|
|
|
|
|
|
|
|
service: router
|
|
|
|
env: flex
|
|
|
|
runtime: python
|
|
|
|
runtime_config:
|
|
|
|
operating_system: ubuntu22
|
|
|
|
runtime_version: "3.11"
|
|
|
|
|
|
|
|
resources:
|
2024-06-25 20:39:42 +00:00
|
|
|
cpu: 4
|
|
|
|
memory_gb: 3.6
|
2024-05-24 03:40:54 +00:00
|
|
|
|
|
|
|
env_variables:
|
|
|
|
PDS_HOST: atproto.brid.gy
|
|
|
|
PLC_HOST: plc.directory
|
|
|
|
APPVIEW_HOST: api.bsky.app
|
|
|
|
BGS_HOST: bsky.network
|
|
|
|
MOD_SERVICE_HOST: mod.bsky.app
|
|
|
|
MOD_SERVICE_DID: did:plc:ar7c4by46qjdydhdevvrndac
|
|
|
|
|
|
|
|
manual_scaling:
|
|
|
|
instances: 1
|
|
|
|
|
2024-07-15 15:46:35 +00:00
|
|
|
liveness_check:
|
|
|
|
# default 300; does lowering this speed up deploy? seems like maybe, a bit?
|
|
|
|
# https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python#liveness_checks
|
|
|
|
initial_delay_sec: 30
|
|
|
|
|
2024-05-24 03:40:54 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/flexible/python/runtime#application_startup
|
2024-05-28 20:22:46 +00:00
|
|
|
# https://docs.gunicorn.org/en/latest/settings.html
|
2024-05-24 03:40:54 +00:00
|
|
|
# TODO: try asyncio w/eventlet workers
|
2024-06-25 20:39:42 +00:00
|
|
|
entrypoint: gunicorn --workers 4 --threads 50 -b :$PORT router:app
|