2023-09-05 19:06:07 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python
|
|
|
|
#
|
|
|
|
# gcloud -q app deploy --project bridgy-federated hub.yaml
|
|
|
|
|
|
|
|
# application: bridgy-federated
|
|
|
|
|
2024-06-13 00:04:59 +00:00
|
|
|
service: atproto-hub
|
2023-09-05 19:06:07 +00:00
|
|
|
env: flex
|
|
|
|
runtime: python
|
|
|
|
runtime_config:
|
|
|
|
operating_system: ubuntu22
|
2023-09-29 18:23:50 +00:00
|
|
|
runtime_version: "3.11"
|
2023-09-11 04:54:28 +00:00
|
|
|
|
2024-05-24 03:40:54 +00:00
|
|
|
resources:
|
2024-07-09 19:38:39 +00:00
|
|
|
cpu: 1
|
|
|
|
memory_gb: 1.6
|
2024-05-04 20:28:12 +00:00
|
|
|
|
2024-06-13 00:04:59 +00:00
|
|
|
# can't be internal because Bluesky relay(s) need to be able to connect to us
|
2023-09-29 21:28:36 +00:00
|
|
|
# over websocket for subscribeRepos
|
|
|
|
network:
|
|
|
|
instance_ip_mode: external
|
2023-09-05 19:06:07 +00:00
|
|
|
|
2023-09-29 18:41:19 +00:00
|
|
|
env_variables:
|
2024-03-11 22:30:28 +00:00
|
|
|
PDS_HOST: atproto.brid.gy
|
2024-02-28 18:57:46 +00:00
|
|
|
PLC_HOST: plc.directory
|
|
|
|
APPVIEW_HOST: api.bsky.app
|
|
|
|
BGS_HOST: bsky.network
|
2024-04-26 20:59:04 +00:00
|
|
|
MOD_SERVICE_HOST: mod.bsky.app
|
|
|
|
MOD_SERVICE_DID: did:plc:ar7c4by46qjdydhdevvrndac
|
|
|
|
# ...or test against labeler.dholms.xyz / did:plc:vzxheqfwpbi3lxbgdh22js66
|
2024-06-13 00:04:59 +00:00
|
|
|
|
2024-06-07 23:47:48 +00:00
|
|
|
ROLLBACK_WINDOW: 50000
|
2023-09-29 18:41:19 +00:00
|
|
|
|
2023-09-05 19:06:07 +00:00
|
|
|
# need only one instance so that new commits can be delivered to subscribeRepos
|
|
|
|
# subscribers in memory
|
|
|
|
manual_scaling:
|
|
|
|
instances: 1
|
|
|
|
|
2024-07-14 15:04:47 +00:00
|
|
|
liveness_check:
|
2024-07-15 15:46:35 +00:00
|
|
|
# default 300; does lowering this speed up deploy? seems like maybe, a bit?
|
2024-07-14 15:04:47 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python#liveness_checks
|
|
|
|
initial_delay_sec: 30
|
|
|
|
|
2023-09-05 19:06:07 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/flexible/python/runtime#application_startup
|
|
|
|
# https://docs.gunicorn.org/en/latest/settings.html#timeout
|
|
|
|
# TODO: try asyncio w/eventlet workers
|
2024-06-13 00:04:59 +00:00
|
|
|
entrypoint: gunicorn --workers 1 --threads 25 -b :$PORT atproto_hub:app
|