hub: add dispatch.yaml for URL-based routing, update network ingress

pull/660/head
Ryan Barrett 2023-09-29 14:28:36 -07:00
rodzic 42a4cb32e6
commit b70ef87236
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
3 zmienionych plików z 16 dodań i 5 usunięć

11
dispatch.yaml 100644
Wyświetl plik

@ -0,0 +1,11 @@
# https://cloud.google.com/appengine/docs/flexible/reference/dispatch-yaml?tab=python
dispatch:
- url: "*/queue/atproto-commit"
service: hub
- url: "*/queue/atproto-poll-notifs"
service: hub
- url: "*/xrpc/com.atproto.sync.subscribeRepos"
service: hub

Wyświetl plik

@ -11,10 +11,10 @@ runtime_config:
operating_system: ubuntu22
runtime_version: "3.11"
# can't do this because Bluesky BGS needs to be able to connect externally over
# websocket for subscribeRepos
# network:
# instance_ip_mode: internal
# can't be internal because Bluesky BGS needs to be able to connect externally
# over websocket for subscribeRepos
network:
instance_ip_mode: external
env_variables:
PDS_HOST: fed.brid.gy

Wyświetl plik

@ -328,7 +328,7 @@ class PagesTest(TestCase):
got = self.client.post('/bridge-user', data={'handle': 'fake:handle:user'})
self.assertEqual(200, got.status_code)
self.assertEqual(
['Bridging fake:user into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!'],
['Bridging fake:handle:user into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!'],
get_flashed_messages())
# check user, repo