mirror of https://gitlab.com/bashrc2/epicyon
Use function to load instance actor key
parent
3b0b4076fb
commit
ddacf72657
10
daemon.py
10
daemon.py
|
@ -71,6 +71,7 @@ from person import removeAccount
|
||||||
from person import canRemovePost
|
from person import canRemovePost
|
||||||
from person import personSnooze
|
from person import personSnooze
|
||||||
from person import personUnsnooze
|
from person import personUnsnooze
|
||||||
|
from posts import getInstanceActorKey
|
||||||
from posts import removePostInteractions
|
from posts import removePostInteractions
|
||||||
from posts import outboxMessageCreateWrap
|
from posts import outboxMessageCreateWrap
|
||||||
from posts import getPinnedPostAsJson
|
from posts import getPinnedPostAsJson
|
||||||
|
@ -16272,14 +16273,7 @@ def runDaemon(lowBandwidth: bool,
|
||||||
|
|
||||||
# signing key used for authorized fetch
|
# signing key used for authorized fetch
|
||||||
# this is the instance actor private key
|
# this is the instance actor private key
|
||||||
instanceActorPrivateKeyFilename = \
|
httpd.signingPrivateKeyPem = getInstanceActorKey(baseDir, domain)
|
||||||
baseDir + '/keys/private/inbox@' + domain + '.key'
|
|
||||||
if not os.path.isfile(instanceActorPrivateKeyFilename):
|
|
||||||
print('ERROR: no instance actor private key for authorized fetch ' +
|
|
||||||
instanceActorPrivateKeyFilename)
|
|
||||||
return
|
|
||||||
with open(instanceActorPrivateKeyFilename) as fp:
|
|
||||||
httpd.signingPrivateKeyPem = fp.read()
|
|
||||||
|
|
||||||
if not unitTest:
|
if not unitTest:
|
||||||
print('Creating inbox queue watchdog')
|
print('Creating inbox queue watchdog')
|
||||||
|
|
Loading…
Reference in New Issue