Changeset 283f618 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 06/26/2026 07:26:26 AM (2 months ago)
- Branches:
- main
- Children:
- f278df9
- Parents:
- eb2fe08
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
reb2fe08 r283f618 17 17 import AP from '../services/ActivityPubService.js'; 18 18 import { apReadLimiter, apInboxLimiter } from '../middleware/rate-limit.js'; 19 import { apEnabled } from '../services/SettingsService.js'; 19 20 20 21 const router = express.Router(); 22 // The whole fediverse layer can be turned off (solo "no federation" mode): 23 // then /ap/*, WebFinger and NodeInfo are simply gone — the site is undiscoverable 24 // and unfederatable. 25 router.use((req, res, next) => { if (!apEnabled()) return res.status(404).end(); next(); }); 21 26 // Generous per-IP baseline over all /ap/* (reads). The inbox POST gets an 22 27 // additional, tighter cap inline (it triggers outbound fetches).
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)