mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
api | ||
archetypes | ||
assets | ||
config/_default | ||
content | ||
layouts | ||
lib | ||
static | ||
.gitignore | ||
.gitlab-ci.yml | ||
.hugo_build.lock | ||
.nowignore | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
config.json | ||
CONTRIBUTING.md | ||
CONTRIBUTORS.md | ||
generateKeys.mts | ||
hugo.toml | ||
LICENSE | ||
NOTICE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
vercel.json |
Generate Activity Pub key
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) - 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 ** ACTIVITYPUB_URL ** ACTIVITYPUB_USER ** ACTIVITYPUB_URL_ALIAS ** ACTIVITYPUB_USER_ALIAS ** ACTIVITYPUB_NAME ** ACTIVITYPUB_SUMMARY
- Modify /layouts/partials/top_list_* to represent the section titles you want to use.
- Update package.json ** Update name field ** update description field
- Update manifest.json ** name ** short_name ** description
- Update robots.txt to point to the full URL of this site
- Modify vercel.json ** Find the line where source is set to "/flear" and update it to point to your apUser name (all lowercase even if variable has case).
- Go through the /api and manually change references (this step will either be explained later or not needed soon, just a reminder placeholder)
The above steps might be reduced by using template processing on otherwise unprocessed files (normally not part of hugo). See the following for more info https://vercel.com/docs/functions/serverless-functions/runtimes/node-js NOTE: Once we move the project over to a dedicated git, change the node info under api and track the version