Lightweight go2social sitemap generator built using JS
- TypeScript 82.9%
- JavaScript 17.1%
| .vscode | ||
| .env.example | ||
| .gitignore | ||
| .prettierrc | ||
| bun.lock | ||
| eslint.config.js | ||
| index.ts | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Gotosocial sitemap.xml generator
Usage
RSS won't work, you need API, which requires authorization.
Replace <yourinstance> with your gotosocial instance's frontend.
- Create an OAuth app here:
https://<yourinstance>/settings/user/applications/new- Put "Sitemap generator" as "Application name"
- Put
https://<yourinstance>/settings/user/applications/callbackto "Redirect URIs" - Put
readto "Scopes"
- Click on the created application in applications list
- Scroll to "Request An API Access Token"
- Ensure
readis in "Token scopes" - Click "Request access token"
- Authenticate with your gotosocial account
- Authorize application by clicking "Allow"
- Click "I understand, show me the token!"
- Copy it
- Run
install -m 600 .env.example .envin repository's directory - Open .env and paste the copied access token into quotes of
TOKEN=""variable - Run
PORT=1234 bun index.tsin repository's directory - Now try making a GET http://localhost:1234/sitemap.xml request
Configure your reverse proxy to redirect /sitemap.xml request to localhost:1234.
Sitemaps are rebuilt every hour upon new request.