kopia lustrzana https://github.com/snarfed/bridgy-fed
hub: add dispatch.yaml for URL-based routing, update network ingress
rodzic
42a4cb32e6
commit
b70ef87236
|
@ -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
|
8
hub.yaml
8
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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue