fedipage/README.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2023-10-08 07:35:17 +02:00
## Generate Activity Pub key
```bash
npm install ts-node typescript '@types/node'
./node_modules/.bin/ts-node --esm generateKeys.mts
```
## Setup firebase
Setup the things
## Setup Vercel
Setup the things
## Trigger post deploy
```
curl -G -X POST --data-urlencode token="<token>" https://flear.org/send-note
```
# License
This project (excluding post content itself) is released under the Apache License v2
# Notes to reconcile later
* Set configuration in /hugo.toml (defaults are in /config/* dont touch)
* Set Gitlab CI ENV variables:
** VERCEL_ORG_ID
** VERCEL_PROJECT_ID
** VERCEL_TOKEN (mask this and make it availible to only protected)
** VERCEL_SCOPE (set to vercel team id, find with `vercel team ls` after creating)
2023-10-08 21:49:05 +02:00
* Set vercel environment variables (vercel.com > project > Settings > Environment Variables) (set on production only usually)
** POLL_MILLISECONDS (set to 250000 or higher)
** ACTIVITYPUB_PRIVATE_KEY (get this value from generating the keys in the pervious step)
** ACTIVITYPUB_PUBLIC_KEY (get this value from generating the keys in the pervious step)
** FIREBASE_PRIVATE_KEY
** FIREBASE_CLIENT_EMAIL
** NEXT_PUBLIC_FIREBASE_PROJECT_ID