mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
fixed the generation of the keys
This commit is contained in:
parent
1420bd21f5
commit
ff80cc9579
2 changed files with 2 additions and 17 deletions
|
@ -84,8 +84,8 @@ We will use these keys to set the values in the next step.
|
||||||
Now lets set the environment values to be used in vercel (this mostly only effect the stuff under /api).
|
Now lets set the environment values to be used in vercel (this mostly only effect the stuff under /api).
|
||||||
|
|
||||||
* POLL_MILLISECONDS: Set to 250000 or higher. This sets the minimum wait time between calls to the send-note endpoint. You may wish to adjust the cronjob in vercel.json as well.
|
* POLL_MILLISECONDS: Set to 250000 or higher. This sets the minimum wait time between calls to the send-note endpoint. You may wish to adjust the cronjob in vercel.json as well.
|
||||||
* ACTIVITYPUB_PRIVATE_KEY: Get this value from generating the keys in the previous step.
|
* ACTIVITYPUB_PRIVATE_KEY: Get this value from generating the keys in the previous step. Note: When you paste in the key vercel will warn about newlines, you must ignore the warning.
|
||||||
* ACTIVITYPUB_PUBLIC_KEY: Get this value from generating the keys in the previous step.
|
* ACTIVITYPUB_PUBLIC_KEY: Get this value from generating the keys in the previous step. Note: When you paste in the key vercel will warn about newlines, you must ignore the warning.
|
||||||
* FIREBASE_PRIVATE_KEY: The value from earlier when setting up Firebase contained in the json. This is **not** the same as the ACTIVITYPUB_PRIVATE_KEY we generated a moment ago.
|
* FIREBASE_PRIVATE_KEY: The value from earlier when setting up Firebase contained in the json. This is **not** the same as the ACTIVITYPUB_PRIVATE_KEY we generated a moment ago.
|
||||||
* FIREBASE_CLIENT_EMAIL: The value from earlier when setting up Firebase contained in the json
|
* FIREBASE_CLIENT_EMAIL: The value from earlier when setting up Firebase contained in the json
|
||||||
* NEXT_PUBLIC_FIREBASE_PROJECT_ID: The value shown in Firebase from the easlier step.
|
* NEXT_PUBLIC_FIREBASE_PROJECT_ID: The value shown in Firebase from the easlier step.
|
||||||
|
|
15
genkeys.sh
15
genkeys.sh
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
openssl genrsa -out private.pem 2048
|
|
||||||
openssl rsa -in private.pem -outform PEM -pubout -out public.pem
|
|
||||||
|
|
||||||
PRIVATE_KEY=`cat private.pem`
|
|
||||||
PUBLIC_KEY=`cat public.pem`
|
|
||||||
|
|
||||||
#PUBLIC_KEY_CLEAN="${PUBLIC_KEY//$'\n'/'\n'}"
|
|
||||||
#PRIVATE_KEY_CLEAN="${PRIVATE_KEY//$'\n'/'\n'}"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "$PRIVATE_KEY"
|
|
||||||
echo
|
|
||||||
echo "$PUBLIC_KEY}"
|
|
||||||
echo
|
|
Loading…
Reference in a new issue