javascript-solid-server 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +3 -1
- package/package.json +1 -1
- package/src/server.js +3 -3
|
@@ -200,7 +200,9 @@
|
|
|
200
200
|
"Bash(tar:*)",
|
|
201
201
|
"Bash(TEST_API=1 API_URL=https://api.solid.social node:*)",
|
|
202
202
|
"Bash(webledgers show:*)",
|
|
203
|
-
"Bash(webledgers set-balance:*)"
|
|
203
|
+
"Bash(webledgers set-balance:*)",
|
|
204
|
+
"Bash(ssh melvincarvalho.com \"pm2 list | grep jss\")",
|
|
205
|
+
"Bash(ssh melvincarvalho.com \"cd /home/ubuntu/jss && git pull && pm2 restart jss\")"
|
|
204
206
|
]
|
|
205
207
|
}
|
|
206
208
|
}
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -240,12 +240,12 @@ export function createServer(options = {}) {
|
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
// Pod creation endpoint with rate limiting
|
|
243
|
-
// Limit:
|
|
243
|
+
// Limit: 1 pod per IP per day to prevent resource exhaustion and namespace squatting
|
|
244
244
|
fastify.post('/.pods', {
|
|
245
245
|
config: {
|
|
246
246
|
rateLimit: {
|
|
247
|
-
max:
|
|
248
|
-
timeWindow: '1
|
|
247
|
+
max: 1,
|
|
248
|
+
timeWindow: '1 day',
|
|
249
249
|
keyGenerator: (request) => request.ip
|
|
250
250
|
}
|
|
251
251
|
}
|