2023-09-21 20:17:43 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/standard/reference/app-yaml?tab=python
|
2017-08-12 23:51:48 +00:00
|
|
|
|
2017-08-14 14:56:49 +00:00
|
|
|
# application: bridgy-federated
|
2020-10-11 15:32:55 +00:00
|
|
|
|
2023-09-21 15:44:06 +00:00
|
|
|
runtime: python311
|
2020-10-11 15:32:55 +00:00
|
|
|
|
2019-12-26 06:20:57 +00:00
|
|
|
# default_expiration: 1h
|
2017-08-12 23:51:48 +00:00
|
|
|
|
2019-12-26 06:20:57 +00:00
|
|
|
# https://cloud.google.com/appengine/docs/standard/python3/runtime#entrypoint_best_practices
|
|
|
|
# https://docs.gunicorn.org/en/latest/settings.html#timeout
|
2023-01-22 15:46:06 +00:00
|
|
|
entrypoint: gunicorn --workers 1 --threads 30 --timeout 60 -b :$PORT app:app
|
2017-08-12 23:51:48 +00:00
|
|
|
|
2021-07-01 20:27:26 +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
|
2021-07-01 20:27:26 +00:00
|
|
|
automatic_scaling:
|
|
|
|
max_idle_instances: 1
|
|
|
|
target_cpu_utilization: .9
|
2023-01-22 15:46:06 +00:00
|
|
|
min_pending_latency: 500ms
|
2021-07-01 20:27:26 +00:00
|
|
|
max_concurrent_requests: 30
|
|
|
|
|
2022-11-15 19:36:38 +00:00
|
|
|
inbound_services:
|
|
|
|
- warmup
|
|
|
|
|
2024-06-04 22:13:53 +00:00
|
|
|
vpc_access_connector:
|
|
|
|
name: projects/bridgy-federated/locations/us-central1/connectors/bridgy-fed
|
|
|
|
|
2023-09-23 22:01:06 +00:00
|
|
|
env_variables:
|
2023-09-28 21:42:44 +00:00
|
|
|
PDS_HOST: fed.brid.gy
|
|
|
|
|
2024-02-29 00:16:10 +00:00
|
|
|
# # sandbox
|
|
|
|
# PLC_HOST: plc.bsky-sandbox.dev
|
|
|
|
# APPVIEW_HOST: api.bsky-sandbox.dev
|
|
|
|
# BGS_HOST: bgs.bsky-sandbox.dev
|
2024-04-26 20:59:04 +00:00
|
|
|
# MOD_SERVICE_HOST: ?
|
|
|
|
# MOD_SERVICE_DID: ?
|
2024-02-29 00:16:10 +00:00
|
|
|
|
|
|
|
# prod
|
|
|
|
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
|
2023-09-23 22:01:06 +00:00
|
|
|
|
2017-08-12 23:51:48 +00:00
|
|
|
handlers:
|
|
|
|
|
|
|
|
# static
|
|
|
|
- url: /static
|
|
|
|
static_dir: static
|
2017-08-19 20:30:54 +00:00
|
|
|
secure: always
|
2017-08-12 23:51:48 +00:00
|
|
|
|
2021-08-06 18:19:33 +00:00
|
|
|
- url: /oauth_dropins_static
|
|
|
|
static_dir: oauth_dropins_static
|
2017-08-16 14:47:21 +00:00
|
|
|
|
2022-11-13 07:19:09 +00:00
|
|
|
- url: /fonts
|
|
|
|
static_dir: oauth_dropins_fonts
|
|
|
|
|
2017-08-18 14:31:31 +00:00
|
|
|
- url: /favicon.ico
|
|
|
|
static_files: static/favicon.ico
|
|
|
|
upload: static/favicon.ico
|
2017-08-19 20:30:54 +00:00
|
|
|
secure: always
|
2017-08-18 14:31:31 +00:00
|
|
|
|
|
|
|
- url: /robots.txt
|
|
|
|
static_files: static/robots.txt
|
|
|
|
upload: static/robots.txt
|
2017-08-19 20:30:54 +00:00
|
|
|
secure: always
|
2017-08-12 23:51:48 +00:00
|
|
|
|
2024-01-22 20:55:34 +00:00
|
|
|
- url: /.well-known/security.txt
|
|
|
|
static_files: static/security.txt
|
|
|
|
upload: static/security.txt
|
|
|
|
secure: always
|
|
|
|
|
2017-08-12 23:51:48 +00:00
|
|
|
# dynamic
|
2019-12-26 06:20:57 +00:00
|
|
|
- url: .*
|
|
|
|
script: auto
|
2017-08-27 18:53:48 +00:00
|
|
|
secure: always
|