kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
36cbbdd874
commit
d3490cab82
2
app.yaml
2
app.yaml
|
|
@ -36,7 +36,7 @@ env_variables:
|
|||
# ...or test against labeler.dholms.xyz / did:plc:vzxheqfwpbi3lxbgdh22js66
|
||||
|
||||
# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
|
||||
NDB_DEBUG: true
|
||||
# NDB_DEBUG: true
|
||||
|
||||
handlers:
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,9 @@ env_variables:
|
|||
MEMCACHE_HOST: '10.126.144.3'
|
||||
ROLLBACK_WINDOW: 200000
|
||||
SUBSCRIBE_REPOS_BATCH_DELAY: 10
|
||||
|
||||
# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
|
||||
NDB_DEBUG: true
|
||||
# NDB_DEBUG: true
|
||||
|
||||
# need only one instance so that new commits can be delivered to subscribeRepos
|
||||
# subscribers in memory
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ if appengine_info.DEBUG:
|
|||
ENV = 'development'
|
||||
CACHE_TYPE = 'NullCache'
|
||||
SECRET_KEY = 'sooper seekret'
|
||||
|
||||
else:
|
||||
ENV = 'production'
|
||||
CACHE_TYPE = 'SimpleCache'
|
||||
|
|
@ -35,6 +36,11 @@ else:
|
|||
for logger in ('oauth_dropins.webutil.webmention', 'lexrpc'):
|
||||
logging.getLogger(logger).setLevel(logging.DEBUG)
|
||||
|
||||
# for debugging ndb. also needs NDB_DEBUG env var.
|
||||
# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
|
||||
# logging.getLogger('google.cloud.ndb').setLevel(logging.DEBUG)
|
||||
# logging.getLogger('google.cloud.ndb._cache').setLevel(logging.DEBUG)
|
||||
|
||||
os.environ.setdefault('APPVIEW_HOST', 'api.bsky.local')
|
||||
os.environ.setdefault('BGS_HOST', 'bgs.bsky.local')
|
||||
os.environ.setdefault('PLC_HOST', 'plc.bsky.local')
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@ env_variables:
|
|||
CHAT_HOST: api.bsky.chat
|
||||
CHAT_DID: did:web:api.bsky.chat
|
||||
MEMCACHE_HOST: '10.126.144.3'
|
||||
|
||||
# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
|
||||
NDB_DEBUG: true
|
||||
# NDB_DEBUG: true
|
||||
|
||||
automatic_scaling:
|
||||
min_num_instances: 2
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue