Alex Gleason
|
838f773b84
|
Remove fetchWorker
|
2025-02-09 15:02:15 -06:00 |
|
Alex Gleason
|
c83a2dba7e
|
Give requireSigner middleware the right type
|
2025-01-30 20:39:51 -06:00 |
|
Alex Gleason
|
449daf1e35
|
ditto.http.response: use error level when status >= 500
|
2025-01-29 10:06:21 -06:00 |
|
Alex Gleason
|
8deea54ec8
|
Add IP_WHITELIST variable to bypass rate limiting
|
2025-01-28 11:40:16 -06:00 |
|
Alex Gleason
|
2165e649bc
|
Remove Stickynotes, replace all occurrences of console.log with logi
|
2025-01-27 18:11:32 -06:00 |
|
Alex Gleason
|
8083148d03
|
Don't include ratelimit headers on the default bucket
|
2025-01-23 15:27:24 -06:00 |
|
Alex Gleason
|
3fdd6e2213
|
Force no-store header on server error and rate limit responses
|
2025-01-23 15:23:48 -06:00 |
|
Alex Gleason
|
66f7853c3b
|
Add cacheControlMiddleware
|
2025-01-23 13:04:40 -06:00 |
|
Alex Gleason
|
6d31949944
|
notActivitypubMiddleware: add bare ld+json to ACTIVITYPUB_TYPES
|
2025-01-21 18:49:08 -06:00 |
|
Alex Gleason
|
281872b0ad
|
Add notActivityPub middleware to stop AP requests on /users/*
|
2025-01-21 18:41:04 -06:00 |
|
Alex Gleason
|
aea31bce5d
|
csp: use the sentry origin instead of the URL itself
|
2024-11-14 20:28:14 -06:00 |
|
Alex Gleason
|
3d376ba8b3
|
csp: fix connect-src
|
2024-11-14 20:18:15 -06:00 |
|
Alex Gleason
|
02ada73f48
|
Include Soapbox sentryDsn in CSP
|
2024-11-14 20:12:27 -06:00 |
|
Alex Gleason
|
42f5e316a8
|
Let bunker_pubkey be different from user pubkey
|
2024-10-26 18:37:26 -05:00 |
|
Alex Gleason
|
874da1baad
|
Delete unused cacheMiddleware and ExpiringCache module
|
2024-10-10 14:01:18 -05:00 |
|
Alex Gleason
|
9469fff6ac
|
Rename translation variables from _ENDPOINT to _BASE_URL
|
2024-10-10 13:48:50 -05:00 |
|
Alex Gleason
|
81c28825a8
|
Record HTTP response time metrics
|
2024-10-10 13:20:03 -05:00 |
|
P. Reis
|
20caaa9ebd
|
refactor: LibreTranslate and DeepL with separate environment variables for their configuration
|
2024-10-08 16:53:30 -03:00 |
|
P. Reis
|
bfab84d937
|
refactor: make provider lowercase because supporting case insensitive is allegedly protocol bloat
|
2024-10-07 17:54:03 -03:00 |
|
P. Reis
|
01a16473ab
|
Merge branch 'main' into translate-status
|
2024-10-07 15:02:47 -03:00 |
|
P. Reis
|
8e58b1a7d4
|
feat: create translatorMiddleware
|
2024-10-07 15:00:46 -03:00 |
|
Alex Gleason
|
8d1b1b8abc
|
Add encrypted captcha answer, move AES utils
|
2024-10-03 19:36:44 -05:00 |
|
Alex Gleason
|
432857c2ff
|
Rework auth tokens table to use hashed/encrypted data
|
2024-10-02 18:28:24 -05:00 |
|
Alex Gleason
|
ebc0250d81
|
DittoDB.getInstance() -> Storages.kysely()
|
2024-09-11 13:23:06 -05:00 |
|
Alex Gleason
|
5454942a2c
|
Update Prometheus metrics to conform to best practices
|
2024-09-07 08:52:02 -05:00 |
|
Alex Gleason
|
f730771d72
|
metrics: track response method
|
2024-08-28 14:40:45 +02:00 |
|
Alex Gleason
|
552de01a17
|
Rework DittoDB to return an object
|
2024-08-11 19:02:27 -05:00 |
|
Alex Gleason
|
5d6ab9f63b
|
Separate listPagination
|
2024-08-06 19:04:27 -05:00 |
|
Alex Gleason
|
d285b7dced
|
Fix Mastodon legacy pagination
|
2024-08-06 18:20:26 -05:00 |
|
Alex Gleason
|
9b521e9f36
|
metricsMiddleware: add comments
|
2024-07-30 14:37:28 -05:00 |
|
Alex Gleason
|
96a8ccb2e6
|
HTTP Response metrics
|
2024-07-05 00:07:59 +01:00 |
|
Alex Gleason
|
e50ba819b9
|
metrics: remove path from fetch and request metrics
|
2024-06-22 09:08:32 -05:00 |
|
Alex Gleason
|
31a5533fd7
|
Add Prometheus metrics
|
2024-06-21 22:38:25 -05:00 |
|
Alex Gleason
|
0d3c619245
|
rateLimitMiddleware: improve tsdoc comment
|
2024-06-18 15:24:44 -05:00 |
|
Alex Gleason
|
330b38ff68
|
Move rateLimiterMiddleware to a separate file
|
2024-06-18 14:28:13 -05:00 |
|
Alex Gleason
|
66abfa38c3
|
Upgrade hono, switch it to use JSR
|
2024-06-18 11:51:51 -05:00 |
|
Alex Gleason
|
c3af8299f1
|
Spread s3 config
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/156
|
2024-06-15 23:51:50 -05:00 |
|
Alex Gleason
|
7d54a5c7d0
|
Kind 30361 -> 30382
|
2024-06-08 11:32:29 -05:00 |
|
Alex Gleason
|
7221b5f203
|
grant_type nostr -> nostr_bunker, connections -> nip46_tokens
|
2024-05-29 16:14:21 -05:00 |
|
Alex Gleason
|
b1a497b127
|
signerMiddleware: accept token1 bech32's
|
2024-05-26 20:27:46 -05:00 |
|
Alex Gleason
|
0541287f0e
|
Replace our NostrBuildUploader with the one from Nostrify
|
2024-05-19 15:43:46 -05:00 |
|
Alex Gleason
|
f0b247130f
|
Add support for Blossom uploader
|
2024-05-19 15:42:45 -05:00 |
|
Alex Gleason
|
82c03dcb56
|
Rewrite all the uploaders
|
2024-05-18 22:00:24 -05:00 |
|
Alex Gleason
|
68b5887ed0
|
Don't let your memes be dreams
|
2024-05-14 18:24:34 -05:00 |
|
Alex Gleason
|
45b766af4d
|
Remove 'user' from AppContext
|
2024-05-14 14:24:48 -05:00 |
|
Alex Gleason
|
a061c248bd
|
signerMiddleware: add debug log
|
2024-05-14 14:18:44 -05:00 |
|
Alex Gleason
|
03182f8a5a
|
ConnectSigner: implement getRelays, support nprofile auth again
|
2024-05-14 12:14:27 -05:00 |
|
Alex Gleason
|
084143c5c8
|
Rename all middleware to thingMiddleware
|
2024-05-14 12:07:54 -05:00 |
|
Alex Gleason
|
1accae2222
|
Add a ConnectSigner to wrap our default opts to NConnectSigner, add c.set('signer') calls to nip98 middleware
|
2024-05-14 12:04:31 -05:00 |
|
Alex Gleason
|
c715827c81
|
c.get('pubkey') -> await c.get('signer')?.getPublicKey()
|
2024-05-14 11:57:03 -05:00 |
|