diff --git a/dispatch.yaml b/dispatch.yaml new file mode 100644 index 0000000..0e411a0 --- /dev/null +++ b/dispatch.yaml @@ -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 diff --git a/hub.yaml b/hub.yaml index 4eec50e..033b79c 100644 --- a/hub.yaml +++ b/hub.yaml @@ -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 diff --git a/tests/test_pages.py b/tests/test_pages.py index d4be7d9..3233814 100644 --- a/tests/test_pages.py +++ b/tests/test_pages.py @@ -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. Try searching for them in a minute!'], + ['Bridging fake:handle:user into Bluesky. Try searching for them in a minute!'], get_flashed_messages()) # check user, repo