Always register listening endpoints and keep routes public

This commit is contained in:
svemagie
2026-03-08 06:07:41 +01:00
parent 540d83afc3
commit bcd0652538
2 changed files with 5 additions and 9 deletions

View File

@@ -20,8 +20,8 @@
- Webmentions moderation + API: `/webmentions`
- Conversations + API: `/conversations`
- GitHub activity + API: `/github`
- Funkwhale activity + API: `/funkwhale` (enabled when `FUNKWHALE_INSTANCE`, `FUNKWHALE_USERNAME`, `FUNKWHALE_TOKEN` are set)
- Last.fm activity + API: `/lastfmapi` (enabled when `LASTFM_API_KEY`, `LASTFM_USERNAME` are set)
- Funkwhale activity + API: `/funkwhale`
- Last.fm activity + API: `/lastfmapi`
## MongoDB
@@ -75,7 +75,7 @@
- Last.fm endpoint requirements:
- `LASTFM_API_KEY`
- `LASTFM_USERNAME`
- If these variables are missing, the related endpoint plugin is not enabled and `/listening` will show no listening history.
- If these variables are missing, the endpoints still exist but return empty activity until credentials are configured.
## Startup script

View File

@@ -36,10 +36,6 @@ const funkwhaleUsername = process.env.FUNKWHALE_USERNAME;
const funkwhaleToken = process.env.FUNKWHALE_TOKEN;
const lastfmApiKey = process.env.LASTFM_API_KEY;
const lastfmUsername = process.env.LASTFM_USERNAME;
const enableFunkwhaleEndpoint = Boolean(
funkwhaleInstance && funkwhaleUsername && funkwhaleToken,
);
const enableLastfmEndpoint = Boolean(lastfmApiKey && lastfmUsername);
const publicationBaseUrl = (
process.env.PUBLICATION_URL || "https://blog.giersig.eu"
).replace(/\/+$/, "");
@@ -127,8 +123,8 @@ export default {
"@rmdes/indiekit-endpoint-github",
"@rmdes/indiekit-endpoint-webmention-io",
"@rmdes/indiekit-endpoint-conversations",
...(enableFunkwhaleEndpoint ? ["@rmdes/indiekit-endpoint-funkwhale"] : []),
...(enableLastfmEndpoint ? ["@rmdes/indiekit-endpoint-lastfm"] : []),
"@rmdes/indiekit-endpoint-funkwhale",
"@rmdes/indiekit-endpoint-lastfm",
//"@rmdes/indiekit-endpoint-activitypub",
],
"@indiekit/store-github": {