From 613f7b33f13f9533f39333779f03bfbd1b9dfea3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 27 Oct 2022 22:21:22 +0200 Subject: [PATCH] Change ENV variable --- routes/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/main.js b/routes/main.js index b3bccf8..e2d2379 100644 --- a/routes/main.js +++ b/routes/main.js @@ -58,7 +58,7 @@ router.get('/privacy', (req, res) => { }) router.get('/.well-known/webfinger', (req, res) => { - if (!(process.env.DOMAIN && process.env.ACTIVITYPUB_PUBLICKEY)) { + if (!(process.env.DOMAIN && process.env.ACTIVITYPUB_PUBLIC_KEY)) { res.status(404).send('
Cannot GET /.well-known/webfinger
') return } @@ -76,7 +76,7 @@ router.get('/.well-known/webfinger', (req, res) => { }) router.get('/users/keyoxide', (req, res) => { - if (!(process.env.DOMAIN && process.env.ACTIVITYPUB_PUBLICKEY)) { + if (!(process.env.DOMAIN && process.env.ACTIVITYPUB_PUBLIC_KEY)) { res.status(404).send('
Cannot GET /keyoxide
') return } @@ -93,7 +93,7 @@ router.get('/users/keyoxide', (req, res) => { 'publicKey': { 'id': `https://${process.env.DOMAIN}/users/keyoxide#main-key`, 'owner': `https://${process.env.DOMAIN}/users/keyoxide`, - 'publicKeyPem': `${process.env.ACTIVITYPUB_PUBLICKEY}` + 'publicKeyPem': `${process.env.ACTIVITYPUB_PUBLIC_KEY}` } } res.type('application/activity+json').json(body)